mainwindow.h Example File
tools/settingseditor/mainwindow.h
#ifndef MAINWINDOW_H
#define MAINWINDOW_H
#include <QMainWindow>
#include <QSharedPointer>
class QAction;
class QSettings;
class LocationDialog;
class SettingsTree;
class MainWindow : public QMainWindow
{
Q_OBJECT
public:
typedef QSharedPointer<QSettings> SettingsPtr;
MainWindow();
private slots:
void openSettings();
void openIniFile();
void openPropertyList();
void openRegistryPath();
void about();
private:
void createActions();
void setSettingsObject(const SettingsPtr &settings);
SettingsTree *settingsTree;
LocationDialog *locationDialog;
QAction *refreshAct;
QAction *autoRefreshAct;
QAction *fallbacksAct;
};
#endif