12345678910111213141516171819202122 |
- #include "tray.h"
- #include "ui_tray.h"
- #include <qdebug.h>
- Tray::Tray(QWidget *parent) : QDialog(parent)
- {
- this->setupUi();
- }
- Tray::~Tray()
- {
- delete ui;
- }
- /**
- * @brief Tray::setupUi
- */
- void Tray::setupUi()
- {
- trayIcon = new QSystemTrayIcon(QIcon(":/icon/printer-ok.png"), this);
- trayIcon->show();
- }
|