Commit 1b172868 authored by Andrius Štikonas's avatar Andrius Štikonas
Browse files

Port remaining KHBoxes.

parent 7889cdc8
......@@ -37,9 +37,9 @@
#include <KActionCollection>
#include <KHelpClient>
#include <KMessageBox>
#include <KHBox>
#include <QFont>
#include <QHBoxLayout>
#include <QProcess>
#include <QStringListModel>
#include <QTemporaryFile>
......@@ -147,11 +147,14 @@ void KGpgExternalActions::encryptFolders(KeysManager *parent, const QList<QUrl>
KgpgSelectPublicKeyDlg *dialog = new KgpgSelectPublicKeyDlg(parent, parent->getModel(), encActions->goDefaultKey(), false, urls);
encActions->m_kgpgfoldertmp = tmpfolder;
KHBox *bGroup = new KHBox(dialog->optionsbox);
QWidget *bGroup = new QWidget(dialog->optionsbox);
QHBoxLayout *bGroupHBoxLayout = new QHBoxLayout(bGroup);
bGroupHBoxLayout->setMargin(0);
(void) new QLabel(i18n("Compression method for archive:"), bGroup);
KComboBox *optionbx = new KComboBox(bGroup);
bGroupHBoxLayout->addWidget(optionbx);
optionbx->setModel(new QStringListModel(FolderCompressJob::archiveNames(), bGroup));
connect(optionbx, SIGNAL(activated(int)), encActions, SLOT(slotSetCompression(int)));
......
......@@ -21,12 +21,12 @@
#include <KComboBox>
#include <KConfigGroup>
#include <KHBox>
#include <KLocalizedString>
#include <KMessageBox>
#include <QIntValidator>
#include <QDialogButtonBox>
#include <QIntValidator>
#include <QHBoxLayout>
#include <QPushButton>
#include <QStringList>
#include <QVBoxLayout>
......@@ -60,8 +60,9 @@ KgpgKeyGenerate::KgpgKeyGenerate(QWidget *parent)
connect(m_kname, SIGNAL(textChanged(QString)), this, SLOT(slotEnableOk()));
KHBox *hgroup = new KHBox(vgroup);
hgroup->setFrameShape(QFrame::StyledPanel);
QWidget *hgroup = new QWidget(vgroup);
QHBoxLayout *hgroupHBoxLayout = new QHBoxLayout(hgroup);
hgroupHBoxLayout->setMargin(0);
m_days->setParent(hgroup);
QIntValidator *validator = new QIntValidator(m_days);
validator->setBottom(0);
......@@ -70,6 +71,7 @@ KgpgKeyGenerate::KgpgKeyGenerate(QWidget *parent)
m_days->setDisabled(true);
m_keyexp = new KComboBox(hgroup);
hgroupHBoxLayout->addWidget(m_keyexp);
m_keyexp->addItem(i18nc("Key will not expire", "Never"), 0);
m_keyexp->addItem(i18n("Days"), 1);
m_keyexp->addItem(i18n("Weeks"), 2);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment