diff options
author | Jonathan Klimt <brouwer@annejan.com> | 2015-12-22 14:46:11 +0100 |
---|---|---|
committer | Jonathan Klimt <jounathaen@mail.de> | 2015-12-22 14:46:11 +0100 |
commit | 8ff7cefe2fc68f3222c5987a4dd7f42421dad7cc (patch) | |
tree | 0e41128ad16e9b097d19e67714492453098ab1a5 /mainwindow.cpp | |
parent | a364be382bac02263c91d04b90c1b935820e138e (diff) |
Small cleanup
Diffstat (limited to 'mainwindow.cpp')
-rw-r--r-- | mainwindow.cpp | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/mainwindow.cpp b/mainwindow.cpp index 99b71ac9..ec904230 100644 --- a/mainwindow.cpp +++ b/mainwindow.cpp @@ -52,23 +52,17 @@ MainWindow::MainWindow(QWidget *parent) QtPass = NULL; QTimer::singleShot(10, this, SLOT(focusInput())); - // Add a Menu to the Add-Button - //addMenu = new QMenu(this); + // Add a Actions to the Add-Button QIcon addFileIcon = QIcon::fromTheme("file_new"); QIcon addFolderIcon = QIcon::fromTheme("folder_new"); actionAddPassword = new QAction(addFileIcon,tr("Add Password"),this); actionAddFolder = new QAction(addFolderIcon, tr("Add Folder"),this); -// actionAddPassword->setObjectName("Add Password"); -// actionAddFolder->setObjectName("Add Folder"); -// //addMenu->addAction(actionAddPassword); -// //addMenu->addAction(actionAddFolder); + ui->addButton->addAction(actionAddPassword); ui->addButton->addAction(actionAddFolder); connect(actionAddPassword, SIGNAL(triggered()), this, SLOT(on_addButton_clicked())); connect(actionAddFolder, SIGNAL(triggered()), this, SLOT(addFolder())); - - //ui->addButton->setMenu(addMenu); } void MainWindow::focusInput() { |