Krita Source Code Documentation
Loading...
Searching...
No Matches
KisNewWindowLayoutDialog.cpp
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2018 Jouni Pentikäinen <joupent@gmail.com>
3 *
4 * SPDX-License-Identifier: GPL-2.0-or-later
5 */
6
8
9#include <kstandardguiitem.h>
10
12 : QDialog(parent)
13{
14 setupUi(this);
15
16 KGuiItem::assign(buttonBox->button(QDialogButtonBox::Ok), KStandardGuiItem::ok());
17 KGuiItem::assign(buttonBox->button(QDialogButtonBox::Cancel), KStandardGuiItem::cancel());
18 connect(buttonBox, SIGNAL(accepted()), this, SLOT(accept()));
19 connect(buttonBox, SIGNAL(rejected()), this, SLOT(reject()));
20}
21
22void KisNewWindowLayoutDialog::setName(const QString &name)
23{
24 nameInput->setText(name);
25}
26
28{
29 return nameInput->text();
30}
31
33{
34 return chkActiveInAllWindows->isChecked();
35}
36
38{
39 return chkFollowFocus->isChecked();
40}
connect(this, SIGNAL(optionsChanged()), this, SLOT(saveOptions()))
KisNewWindowLayoutDialog(QWidget *parent=0)
void setName(const QString &name)