|
@@ -20,6 +20,7 @@ MainWindow::MainWindow(QWidget *parent) : QMainWindow(parent), ui(new Ui::MainWi
|
20
|
20
|
m_tray->show();
|
21
|
21
|
QMenu* menu = new QMenu("Epimafia NetSoul", this);
|
22
|
22
|
connect(menu->addAction("Show"), SIGNAL(triggered()), this, SLOT(showAndRaise()));
|
|
23
|
+ menu->addAction(ui->actionHide);
|
23
|
24
|
menu->addSeparator();
|
24
|
25
|
menu->addAction(ui->actionConnect);
|
25
|
26
|
menu->addAction(ui->actionDisconnect);
|
|
@@ -43,6 +44,7 @@ MainWindow::MainWindow(QWidget *parent) : QMainWindow(parent), ui(new Ui::MainWi
|
43
|
44
|
connect(ui->contactsWidget, SIGNAL(chatRequested(NetSoul::Users)), m_chatMgr, SLOT(chat(NetSoul::Users)));
|
44
|
45
|
connect(ui->actionConnect, SIGNAL(triggered()), ui->loginWidget, SLOT(login()));
|
45
|
46
|
connect(ui->actionDisconnect, SIGNAL(triggered()), m_netsoul, SLOT(logout()));
|
|
47
|
+ connect(ui->actionHide, SIGNAL(triggered()), this, SLOT(hide()));
|
46
|
48
|
connect(ui->actionQuit, SIGNAL(triggered()), qApp, SLOT(quit()));
|
47
|
49
|
connect(ui->actionOptions, SIGNAL(triggered()), this, SLOT(options()));
|
48
|
50
|
connect(ui->actionAddContact, SIGNAL(triggered()), this, SLOT(addContact()));
|