summaryrefslogtreecommitdiffstats
path: root/src/dialog.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/dialog.cpp')
-rw-r--r--src/dialog.cpp13
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();
+ }
+}