diff options
author | Nils Schwabe | 2014-03-21 18:25:20 +0100 |
---|---|---|
committer | Nils Schwabe | 2014-03-21 18:25:20 +0100 |
commit | f8be3f2da30e0b834124bd52dda75e6a724b4b76 (patch) | |
tree | 636da82354a3e924eb0f7a70c0529161b4298744 /src/dialog.cpp | |
parent | added functionality to filter box (diff) | |
download | vmchooser2-f8be3f2da30e0b834124bd52dda75e6a724b4b76.tar.gz vmchooser2-f8be3f2da30e0b834124bd52dda75e6a724b4b76.tar.xz vmchooser2-f8be3f2da30e0b834124bd52dda75e6a724b4b76.zip |
added help and news box
Diffstat (limited to 'src/dialog.cpp')
-rw-r--r-- | src/dialog.cpp | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/dialog.cpp b/src/dialog.cpp index 2a50c11..1249561 100644 --- a/src/dialog.cpp +++ b/src/dialog.cpp @@ -36,6 +36,9 @@ Dialog::Dialog(QWidget *parent) ui->tabButtonLocal->setChecked(true); ui->filterEdit->setEnabled(false); + ui->helpBox->hide(); + ui->newsBox->hide(); + setListModel(model_[0]); QObject::connect(ui->treeView->selectionModel(), SIGNAL(currentChanged ( const QModelIndex&, const QModelIndex&)), @@ -465,3 +468,13 @@ void Dialog::setListModel(QAbstractItemModel *model) { } ui->treeView->setModel(model); } + +void Dialog::on_helpNewsButton_clicked() { + if (ui->helpBox->isVisible()) { + ui->helpBox->hide(); + ui->newsBox->hide(); + } else { + ui->helpBox->show(); + ui->newsBox->show(); + } +} |