summaryrefslogtreecommitdiffabout
path: root/kmicromail/nntpgroupsdlg.cpp
blob: c94d9fa0b567375ee5b26692af68fdcde3d8ae71 (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
#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();
}