21 m_activeWindow(
nullptr)
34 : QApplication(argc, argv)
41 : QApplication(argc, argv)
50 return d->m_peer->isClient();
56 return d->m_peer->applicationId();
62 d->m_activeWindow = aw;
66 connect(d->m_peer, SIGNAL(messageReceived(QString)),
this, SLOT(activateWindow()));
70 disconnect(d->m_peer, SIGNAL(messageReceived(QString)),
this, SLOT(activateWindow()));
77 return d->m_activeWindow;
83 return d->m_peer->sendMessage(message, timeout);
91 d->m_activeWindow->setWindowState(d->m_activeWindow->windowState() & ~
Qt::WindowMinimized);
92 d->m_activeWindow->raise();
93 d->m_activeWindow->activateWindow();
static QString message(const TTK::Attribute attr)
The class of the ttk application private.
The namespace of the string literals.
QString id() const noexcept
The class of the ttk local peer.
The class of the ttk application.
~TTKApplicationPrivate() noexcept
QWidget * activationWindow() const noexcept
void messageReceived(const QString &message)
TTKApplication(int &argc, char **argv)
void setActivationWindow(QWidget *aw, bool activateOnMessage=true) const noexcept
void initialize(const QString &id={})
TTKApplicationPrivate() noexcept
bool sendMessage(const QString &message, int timeout=5000)
#define TTK_INIT_PRIVATE(Class)
The class of the ttk private base.