QGCSettingsWidget.h 589 Bytes
Newer Older
lm's avatar
lm committed
1 2 3 4
#ifndef QGCSETTINGSWIDGET_H
#define QGCSETTINGSWIDGET_H

#include <QDialog>
5
#include "MainWindow.h"
lm's avatar
lm committed
6

7 8 9
namespace Ui
{
class QGCSettingsWidget;
lm's avatar
lm committed
10 11 12 13 14 15 16
}

class QGCSettingsWidget : public QDialog
{
    Q_OBJECT

public:
17
    QGCSettingsWidget(QWidget *parent = 0, Qt::WindowFlags flags = Qt::Sheet);
lm's avatar
lm committed
18 19
    ~QGCSettingsWidget();

20
public slots:
21
    void styleChanged(int index);
22
    void lineEditFinished();
23 24
    void setDefaultStyle();
    void selectStylesheet();
25

lm's avatar
lm committed
26
private:
27
    MainWindow* mainWindow;
28 29
    Ui::QGCSettingsWidget* ui;
    bool updateStyle(QString style);
lm's avatar
lm committed
30 31 32
};

#endif // QGCSETTINGSWIDGET_H