From f8be3f2da30e0b834124bd52dda75e6a724b4b76 Mon Sep 17 00:00:00 2001 From: Nils Schwabe Date: Fri, 21 Mar 2014 18:25:20 +0100 Subject: added help and news box --- src/dialog.cpp | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'src/dialog.cpp') 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(); + } +} -- cgit v1.2.3-55-g7522