hidetitlebars.h 899 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
/*
Copyright (C) 2012  Jean-Baptiste Mardelle <jb@kdenlive.org>
Copyright (C) 2014  Till Theato <root@ttill.de>
This file is part of Kdenlive. See www.kdenlive.org.

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
*/

#ifndef HIDETITLEBARS_H
#define HIDETITLEBARS_H

#include <QObject>
16
class QAction;
17 18 19 20 21 22 23 24 25 26 27

/**
 * @class HideTitleBars
 * @brief Handles functionality to switch the title bars of the dock widgets on/off.
 */

class HideTitleBars : public QObject
{
    Q_OBJECT

public:
Laurent Montel's avatar
Laurent Montel committed
28
    explicit HideTitleBars(QObject *parent = nullptr);
29

30 31 32
private:
    QAction *m_switchAction;

33 34 35 36 37 38 39
private slots:
    void slotInstallRightClick();
    void slotShowTitleBars(bool show);
    void slotSwitchTitleBars();
};

#endif