This repository has been archived on 2021-01-14. You can view files and clone it, but cannot push or open issues or pull requests.
Passgen/boss.cpp

53 lines
910 B
C++
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#include "boss.h"
boss::boss(QWidget *parent)
: QMainWindow(parent)
{
trayIco = new QSystemTrayIcon(this);
connect(trayIco, SIGNAL(activated(QSystemTrayIcon::ActivationReason)), this, SLOT(ia(QSystemTrayIcon::ActivationReason)));
QIcon temp = QIcon(":/lock.png");
trayIco->setIcon(temp);
trayIco->show();
}
/**
подмена внешнего вида контекс меню
* @brief boss::ttt
*/
void boss::ttt()
{
}
/**
Обработка действий с менюхой
* @brief boss::ia
* @param reason
*/
void boss::ia(QSystemTrayIcon::ActivationReason reason)
{
switch(reason)
{
case QSystemTrayIcon::Context:
ttt();
break;
default:
break;
}
}
boss::~boss()
{
}
/**
* @brief boss::mcm
* @return позицию иконки в трее (x,y,width,height)
*/
QRect boss::mcm()
{
QRect *temp;
return temp;
}