KanoopGuiQt 1.3.0
Qt GUI utility library
Loading...
Searching...
No Matches
application.h
1#ifndef APPLICATION_H
2#define APPLICATION_H
3
4#include <QApplication>
5
6#include <Kanoop/utility/loggingbaseclass.h>
7#include <Kanoop/gui/libkanoopgui.h>
8
9/**
10 * @brief QApplication subclass that adds logging support and a preferences-changed signal.
11 *
12 * Use this as the top-level application object in KanoopGuiQt-based applications.
13 * Connect to preferencesChanged() to have widgets update when application preferences
14 * are modified.
15 */
16class LIBKANOOPGUI_EXPORT Application : public QApplication,
17 public LoggingBaseClass
18{
19 Q_OBJECT
20public:
21 /**
22 * @brief Construct the application object.
23 * @param argc Reference to the command-line argument count (from main)
24 * @param argv Command-line argument vector (from main)
25 * @param applicationName Application name string used for settings and window titles
26 */
27 explicit Application(int& argc, char *argv[], const QString& applicationName);
28
29signals:
30 /** @brief Emitted when the user changes application preferences. */
32};
33
34#endif // APPLICATION_H
QApplication subclass that adds logging support and a preferences-changed signal.
Definition application.h:18
void preferencesChanged()
Emitted when the user changes application preferences.
Application(int &argc, char *argv[], const QString &applicationName)
Construct the application object.