summaryrefslogtreecommitdiffabout
path: root/kmicromail/nntpgroupsdlg.cpp
Side-by-side diff
Diffstat (limited to 'kmicromail/nntpgroupsdlg.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--kmicromail/nntpgroupsdlg.cpp29
1 files changed, 29 insertions, 0 deletions
diff --git a/kmicromail/nntpgroupsdlg.cpp b/kmicromail/nntpgroupsdlg.cpp
new file mode 100644
index 0000000..c94d9fa
--- a/dev/null
+++ b/kmicromail/nntpgroupsdlg.cpp
@@ -0,0 +1,29 @@
+#include "nntpgroupsdlg.h"
+#include "nntpgroups.h"
+
+#include <libmailwrapper/settings.h>
+
+#include <qlayout.h>
+
+NNTPGroupsDlg::NNTPGroupsDlg(NNTPaccount *account,QWidget * parent, const char * name)
+ : QDialog(parent,name,true,WStyle_ContextHelp)
+{
+ setCaption(tr("Subscribed newsgroups"));
+ m_Account = account;
+ QVBoxLayout*dlglayout = new QVBoxLayout(this);
+ dlglayout->setSpacing(2);
+ dlglayout->setMargin(1);
+ groupsWidget = new NNTPGroups(account,this);
+ dlglayout->addWidget(groupsWidget);
+}
+
+NNTPGroupsDlg::~NNTPGroupsDlg()
+{
+}
+
+void NNTPGroupsDlg::accept()
+{
+ groupsWidget->storeValues();
+ m_Account->save();
+ QDialog::accept();
+}