|
|
@ -135,7 +135,6 @@ void Widget::init() |
|
|
|
|
|
|
|
|
|
|
|
actionLogout = new QAction(this); |
|
|
|
actionLogout = new QAction(this); |
|
|
|
actionLogout->setIcon(prepareIcon(":/img/others/logout-icon.svg", icon_size, icon_size)); |
|
|
|
actionLogout->setIcon(prepareIcon(":/img/others/logout-icon.svg", icon_size, icon_size)); |
|
|
|
connect(actionLogout, &QAction::triggered, profileForm, &ProfileForm::onLogoutClicked); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
actionQuit = new QAction(this); |
|
|
|
actionQuit = new QAction(this); |
|
|
|
actionQuit->setMenuRole(QAction::QuitRole); |
|
|
|
actionQuit->setMenuRole(QAction::QuitRole); |
|
|
@ -227,6 +226,9 @@ void Widget::init() |
|
|
|
profileForm = new ProfileForm(); |
|
|
|
profileForm = new ProfileForm(); |
|
|
|
settingsWidget = new SettingsWidget(); |
|
|
|
settingsWidget = new SettingsWidget(); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//connect logout tray menu action
|
|
|
|
|
|
|
|
connect(actionLogout, &QAction::triggered, profileForm, &ProfileForm::onLogoutClicked); |
|
|
|
|
|
|
|
|
|
|
|
Core* core = Nexus::getCore(); |
|
|
|
Core* core = Nexus::getCore(); |
|
|
|
connect(core, &Core::fileDownloadFinished, filesForm, &FilesForm::onFileDownloadComplete); |
|
|
|
connect(core, &Core::fileDownloadFinished, filesForm, &FilesForm::onFileDownloadComplete); |
|
|
|
connect(core, &Core::fileUploadFinished, filesForm, &FilesForm::onFileUploadComplete); |
|
|
|
connect(core, &Core::fileUploadFinished, filesForm, &FilesForm::onFileUploadComplete); |
|
|
|