_mainWin->init();
QtUiSettings uiSettings;
uiSettings.initAndNotify("UseSystemTrayIcon", this, SLOT(useSystemTrayChanged(QVariant)), true);
+
+ GraphicalUi::init(); // needs to be called after the mainWin is initialized
}
MessageModel *QtUi::createMessageModel(QObject *parent) {
#ifdef Q_WS_WIN
_dwTickCount = 0;
- mainWidget()->installEventFilter(this);
#endif
+}
+void GraphicalUi::init() {
+#ifdef Q_WS_WIN
+ mainWidget()->installEventFilter(this);
+#endif
}
GraphicalUi::~GraphicalUi() {
public:
GraphicalUi(QObject *parent = 0);
virtual ~GraphicalUi();
+ virtual void init();
//! Access global ActionCollections.
/** These ActionCollections are associated with the main window, i.e. they contain global