summaryrefslogtreecommitdiffabout
path: root/kmicromail/nntpgroupsdlg.cpp
blob: a461bdff2fb2d037c7a9ddbcd8759a800677b174 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#include "nntpgroupsdlg.h"
#include "nntpgroups.h"
#include <klocale.h>

#include <libmailwrapper/settings.h>

#include <qlayout.h>

NNTPGroupsDlg::NNTPGroupsDlg(NNTPaccount *account,QWidget * parent, const char * name)
    : QDialog(parent,name,true,WStyle_ContextHelp)
{
    setCaption(i18n("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();
}