blob: e6e9dc779d56b8a0707eea7abfeb32f7098264a8 (
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
31
32
33
34
35
36
|
#include "newmaildir.h"
#include <qlineedit.h>
#include <qcheckbox.h>
Newmdirdlg::Newmdirdlg( QWidget* parent, const char* name,bool no_sub)
: Newmdirdlgui(parent,name,true),ndir(""),possible_subs(false)
{
if (no_sub) {
subdirsPossibleBox->setChecked(false);
subdirsPossibleBox->hide();
}
}
Newmdirdlg::~Newmdirdlg()
{
}
void Newmdirdlg::accept()
{
ndir = dirnameEdit->text();
possible_subs = subdirsPossibleBox->isChecked();
if (ndir.isEmpty()) {
return;
}
Newmdirdlgui::accept();
}
const QString&Newmdirdlg::Newdir()const
{
return ndir;
}
const bool Newmdirdlg::subpossible()const
{
return possible_subs;
}
|