Commit e1730ef8 authored by Lukas Appelhans's avatar Lukas Appelhans

Port a number of dialogs to QDialog

parent 972778db
......@@ -21,10 +21,10 @@
#include "settings.h"
KGetSaveSizeDialog::KGetSaveSizeDialog(const QByteArray &name, QWidget *parent, Qt::WFlags flags)
: KDialog(parent, flags),
: QDialog(parent, flags),
m_name("Size" + name)
{
const QSize size;// = KSharedConfig::openConfig()->group("Geometry").readEntry(m_name.constData(), QSize()); //TODO: Port this file
const QSize size = KSharedConfig::openConfig()->group("Geometry").readEntry(m_name.constData(), QSize()); //TODO: Port this file
if (size.isValid()) {
resize(size);
}
......@@ -33,6 +33,6 @@ KGetSaveSizeDialog::KGetSaveSizeDialog(const QByteArray &name, QWidget *parent,
KGetSaveSizeDialog::~KGetSaveSizeDialog()
{
const QString name = QString("Size_") + metaObject()->className();
//KSharedConfig::openConfig()->group("Geometry").writeEntry(m_name.constData(), size());
KSharedConfig::openConfig()->group("Geometry").writeEntry(m_name.constData(), size());
}
......@@ -21,14 +21,14 @@
#define KGET_BASE_DIALOG
#include "kget_export.h"
#include <KDialog>
#include <QDialog>
/**
* Subclass to make sure that the size of the dialog is
* automatically stored and restored
*/
class KGET_EXPORT KGetSaveSizeDialog : public KDialog
class KGET_EXPORT KGetSaveSizeDialog : public QDialog
{
Q_OBJECT
......
......@@ -21,13 +21,10 @@ GroupSettingsDialog::GroupSettingsDialog(QWidget *parent, TransferGroupHandler *
: KGetSaveSizeDialog("GroupSettingsDialog", parent),
m_group(group)
{
setCaption(i18n("Group Settings for %1", group->name()));
showButtonSeparator(true);
setWindowTitle(i18n("Group Settings for %1", group->name()));
//showButtonSeparator(true);
QWidget *widget = new QWidget(this);
ui.setupUi(widget);
setMainWidget(widget);
ui.setupUi(this);
ui.downloadBox->setValue(group->downloadLimit(Transfer::VisibleSpeedLimit));
ui.uploadBox->setValue(group->uploadLimit(Transfer::VisibleSpeedLimit));
......@@ -48,6 +45,8 @@ GroupSettingsDialog::GroupSettingsDialog(QWidget *parent, TransferGroupHandler *
ui.nepomukWidget->hide();
#endif
connect(ui.buttonBox, &QDialogButtonBox::accepted, this, &QDialog::accept);
connect(ui.buttonBox, &QDialogButtonBox::rejected, this, &QDialog::reject);
connect(this, &GroupSettingsDialog::accepted, this, &GroupSettingsDialog::save);
}
......@@ -57,7 +56,7 @@ GroupSettingsDialog::~GroupSettingsDialog()
QSize GroupSettingsDialog::sizeHint() const
{
QSize sh = KDialog::sizeHint();
QSize sh = QDialog::sizeHint();
sh.setWidth(sh.width() * 1.4);
return sh;
}
......
......@@ -7,7 +7,7 @@
<x>0</x>
<y>0</y>
<width>457</width>
<height>253</height>
<height>211</height>
</rect>
</property>
<property name="sizePolicy">
......@@ -21,14 +21,14 @@
</property>
<layout class="QVBoxLayout" name="verticalLayout">
<item>
<widget class="KTitleWidget" name="ktitlewidget">
<widget class="KTitleWidget" name="ktitlewidget" native="true">
<property name="sizePolicy">
<sizepolicy hsizetype="Preferred" vsizetype="Fixed">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="text">
<property name="text" stdset="0">
<string>Group Settings</string>
</property>
</widget>
......@@ -41,7 +41,7 @@
<item row="0" column="0">
<widget class="QLabel" name="label">
<property name="text">
<string>Default &amp;folder:</string>
<string>Defau&amp;lt folder:</string>
</property>
<property name="buddy">
<cstring>defaultFolderRequester</cstring>
......@@ -61,7 +61,7 @@
<string>Moves all transfers with the regular expression to this group</string>
</property>
<property name="text">
<string>Regular &amp;expression:</string>
<string>Re&amp;gular expression:</string>
</property>
<property name="buddy">
<cstring>regExpEdit</cstring>
......@@ -70,7 +70,7 @@
</item>
<item row="1" column="1">
<widget class="KLineEdit" name="regExpEdit">
<property name="clickMessage">
<property name="clickMessage" stdset="0">
<string>*movies*</string>
</property>
</widget>
......@@ -116,7 +116,7 @@
<item row="2" column="0">
<widget class="QLabel" name="label_3">
<property name="text">
<string>Maximum &amp;download speed:</string>
<string>Ma&amp;ximum download speed:</string>
</property>
<property name="buddy">
<cstring>downloadBox</cstring>
......@@ -146,6 +146,13 @@
<layout class="QHBoxLayout" name="horizontalLayout"/>
</widget>
</item>
<item>
<widget class="QDialogButtonBox" name="buttonBox">
<property name="standardButtons">
<set>QDialogButtonBox::Cancel|QDialogButtonBox::Ok</set>
</property>
</widget>
</item>
</layout>
</widget>
<customwidgets>
......@@ -163,6 +170,7 @@
<class>KUrlRequester</class>
<extends>QFrame</extends>
<header>kurlrequester.h</header>
<container>1</container>
</customwidget>
</customwidgets>
<resources/>
......
......@@ -35,6 +35,7 @@
#include <KRun>
#include <kio/global.h>
#include <QPushButton>
#include <QDialogButtonBox>
#include <QIcon>
#include <KLocale>
#include <QFontDatabase>
......@@ -46,8 +47,7 @@ TransferHistory::TransferHistory(QWidget *parent)
m_iconModeEnabled(true)
{
setAttribute(Qt::WA_DeleteOnClose);
setCaption(i18n("Transfer History"));
setButtons(KDialog::Close);
setWindowTitle(i18n("Transfer History"));
//Setup Ui-Parts from Designer
QWidget *mainWidget = new QWidget(this);
......@@ -80,10 +80,16 @@ TransferHistory::TransferHistory(QWidget *parent)
m_actionDownload = widget.actionDownload;
m_actionDownload->setIcon(QIcon::fromTheme("document-new"));
m_openFile = new QAction(QIcon::fromTheme("document-open"), i18n("&Open File"), this);
setMainWidget(mainWidget);
m_verticalLayout->addWidget(m_view);
m_verticalLayout->addWidget(m_progressBar);
QDialogButtonBox * buttonBox = new QDialogButtonBox(mainWidget);
buttonBox->clear();
buttonBox->addButton(QDialogButtonBox::Close);
m_verticalLayout->addWidget(buttonBox);
layout()->addWidget(mainWidget);
watcher = new QFileSystemWatcher();
watcher->addPath(KStandardDirs::locateLocal("appdata", QString()));
......@@ -103,6 +109,8 @@ TransferHistory::TransferHistory(QWidget *parent)
connect(m_store, SIGNAL(elementLoaded(int,int,TransferHistoryItem)),
SLOT(slotElementLoaded(int,int,TransferHistoryItem)));
connect(m_searchBar, SIGNAL(textChanged(QString)), m_view, SLOT(setFilterRegExp(QString)));
connect(buttonBox, &QDialogButtonBox::rejected, this, &QDialog::reject);
connect(buttonBox, &QDialogButtonBox::accepted, this, &QDialog::accept);
slotAddTransfers();
}
......
......@@ -37,8 +37,7 @@ KGetLinkView::KGetLinkView(QWidget *parent)
m_urlAction(0)
{
setAttribute(Qt::WA_DeleteOnClose);
setCaption(i18n("Import Links"));
setButtons(0);
setWindowTitle(i18n("Import Links"));
/*if (parent) {
KWindowInfo info = KWindowSystem::windowInfo(parent->winId(), NET::WMDesktop, NET::WMDesktop);
......@@ -51,8 +50,7 @@ KGetLinkView::KGetLinkView(QWidget *parent)
m_proxyModel->setDynamicSortFilter(true);
m_proxyModel->setFilterCaseSensitivity(Qt::CaseInsensitive);
QWidget *widget = new QWidget(this);
ui.setupUi(widget);
ui.setupUi(this);
m_proxyModel->setShowWebContent(ui.showWebContent->isChecked());
......@@ -114,7 +112,6 @@ KGetLinkView::KGetLinkView(QWidget *parent)
SLOT(selectionChanged()));
connect(ui.dialogButtonBox, SIGNAL(rejected()), SLOT(reject()));
setMainWidget(widget);
QPushButton *download = ui.dialogButtonBox->addButton(i18nc("Download the items which have been selected","&Download"),
QDialogButtonBox::AcceptRole,
this,
......@@ -265,7 +262,7 @@ void KGetLinkView::slotStartLeech()
void KGetLinkView::setPageUrl( const QString& url )
{
setPlainCaption( i18n( "Links in: %1 - KGet", url ) );
setWindowTitle( i18n( "Links in: %1 - KGet", url ) );
}
void KGetLinkView::importUrl(const QString &url)
......@@ -315,8 +312,6 @@ void KGetLinkView::selectionChanged()
ui.selectAll->setEnabled( !(!modelRowCount || count == m_proxyModel->rowCount() ) );
ui.deselectAll->setEnabled( count > 0 );
ui.invertSelection->setEnabled( count > 0 );
enableButtonOk(buttonEnabled);
}
}
......
......@@ -33,9 +33,7 @@ DragDlg::DragDlg(KGetMetalink::Resources *resources, KGetMetalink::CommonData *c
m_resources(resources),
m_commonData(commonData)
{
QWidget *widget = new QWidget(this);
ui.setupUi(widget);
setMainWidget(widget);
ui.setupUi(this);
m_urlWidget = new UrlWidget(this);
m_urlWidget->init(m_resources, countrySort);
......@@ -64,9 +62,11 @@ DragDlg::DragDlg(KGetMetalink::Resources *resources, KGetMetalink::CommonData *c
uiData.language->setModel(languageSort);
uiData.language->setCurrentIndex(-1);
connect(ui.buttonBox, &QDialogButtonBox::accepted, this, &QDialog::accept);
connect(ui.buttonBox, &QDialogButtonBox::rejected, this, &QDialog::reject);
connect(this, &DragDlg::accepted, this, &DragDlg::slotFinished);
setCaption(i18n("Import dropped files"));
setWindowTitle(i18n("Import dropped files"));
}
void DragDlg::slotFinished()
......
......@@ -211,6 +211,13 @@
</widget>
</widget>
</item>
<item>
<widget class="QDialogButtonBox" name="buttonBox">
<property name="standardButtons">
<set>QDialogButtonBox::Cancel|QDialogButtonBox::Ok</set>
</property>
</widget>
</item>
</layout>
</widget>
<customwidgets>
......
......@@ -41,9 +41,7 @@ FileDlg::FileDlg(KGetMetalink::File *file, const QStringList &currentFileNames,
//remove the initial name, to see later if the chosen name is still free
m_currentFileNames.removeAll(m_initialFileName);
QWidget *widget = new QWidget(this);
ui.setupUi(widget);
setMainWidget(widget);
ui.setupUi(this);
m_urlWidget = new UrlWidget(this);
m_urlWidget->init(&m_file->resources, countrySort);
......@@ -109,11 +107,11 @@ FileDlg::FileDlg(KGetMetalink::File *file, const QStringList &currentFileNames,
connect(ui.add_hash, &QPushButton::clicked, this, &FileDlg::slotAddHash);
connect(ui.remove_hash, &QPushButton::clicked, this, &FileDlg::slotRemoveHash);
connect(ui.name, &KLineEdit::textEdited, this, &FileDlg::slotUpdateOkButton);
connect(this, &FileDlg::okClicked, this, &FileDlg::slotOkClicked);
connect(ui.buttonBox, &QDialogButtonBox::accepted, this, &FileDlg::slotOkClicked);
slotUpdateOkButton();
setCaption(i18n("File Properties"));
setWindowTitle(i18n("File Properties"));
}
void FileDlg::slotUpdateOkButton()
......@@ -137,7 +135,7 @@ void FileDlg::slotUpdateOkButton()
ui.infoWidget->setText(information.join(" "));
ui.infoWidget->setVisible(!information.isEmpty());
enableButtonOk(hasName && hasUrls && !isDuplicate);
ui.buttonBox->button(QDialogButtonBox::Ok)->setEnabled(hasName && hasUrls && !isDuplicate);
}
void FileDlg::slotUpdateVerificationButtons()
......
......@@ -219,13 +219,20 @@
</widget>
</widget>
</item>
<item>
<widget class="QDialogButtonBox" name="buttonBox">
<property name="standardButtons">
<set>QDialogButtonBox::Cancel|QDialogButtonBox::Ok</set>
</property>
</widget>
</item>
</layout>
</widget>
<customwidgets>
<customwidget>
<class>KLineEdit</class>
<class>KRestrictedLine</class>
<extends>QLineEdit</extends>
<header>klineedit.h</header>
<header>krestrictedline.h</header>
</customwidget>
<customwidget>
<class>KTabWidget</class>
......@@ -234,9 +241,9 @@
<container>1</container>
</customwidget>
<customwidget>
<class>KRestrictedLine</class>
<extends>KLineEdit</extends>
<header>krestrictedline.h</header>
<class>KLineEdit</class>
<extends>QLineEdit</extends>
<header>klineedit.h</header>
</customwidget>
<customwidget>
<class>KMessageWidget</class>
......
......@@ -131,8 +131,7 @@ MirrorSettings::MirrorSettings(QWidget *parent, TransferHandler *handler, const
m_proxy = new MirrorProxyModel(this);
m_proxy->setSourceModel(m_model);
QWidget *widget = new QWidget(this);
ui.setupUi(widget);
ui.setupUi(this);
KGuiItem::assign(ui.add, KStandardGuiItem::add());
KGuiItem::assign(ui.remove, KStandardGuiItem::remove());
ui.treeView->setModel(m_proxy);
......@@ -148,9 +147,10 @@ MirrorSettings::MirrorSettings(QWidget *parent, TransferHandler *handler, const
connect(ui.remove, &QPushButton::clicked, this, &MirrorSettings::removeMirror);
connect(this, &MirrorSettings::finished, this, &MirrorSettings::save);
setMainWidget(widget);
setCaption(i18n("Modify the used mirrors"));
setButtons(KDialog::Close);
setWindowTitle(i18n("Modify the used mirrors"));
connect(ui.buttonBox, &QDialogButtonBox::rejected, this, &QDialog::reject);
connect(ui.buttonBox, &QDialogButtonBox::accepted, this, &QDialog::accept);
}
QSize MirrorSettings::sizeHint() const
......
......@@ -22,6 +22,7 @@
#include "mirrormodel.h"
#include "../../core/basedialog.h"
#include <KDialog>
#include "ui_mirrorsettings.h"
#include "ui_mirroradddlg.h"
......
......@@ -6,27 +6,11 @@
<rect>
<x>0</x>
<y>0</y>
<width>482</width>
<height>216</height>
<width>508</width>
<height>233</height>
</rect>
</property>
<layout class="QGridLayout" name="gridLayout">
<item row="0" column="0" rowspan="3">
<widget class="QTreeView" name="treeView">
<property name="selectionMode">
<enum>QAbstractItemView::ExtendedSelection</enum>
</property>
<property name="rootIsDecorated">
<bool>false</bool>
</property>
<property name="uniformRowHeights">
<bool>true</bool>
</property>
<property name="sortingEnabled">
<bool>true</bool>
</property>
</widget>
</item>
<item row="0" column="1">
<widget class="QPushButton" name="add"/>
</item>
......@@ -46,10 +30,43 @@
</property>
</spacer>
</item>
<item row="0" column="0" rowspan="3">
<widget class="QTreeView" name="treeView">
<property name="sizePolicy">
<sizepolicy hsizetype="MinimumExpanding" vsizetype="Expanding">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="selectionMode">
<enum>QAbstractItemView::ExtendedSelection</enum>
</property>
<property name="rootIsDecorated">
<bool>false</bool>
</property>
<property name="uniformRowHeights">
<bool>true</bool>
</property>
<property name="sortingEnabled">
<bool>true</bool>
</property>
</widget>
</item>
<item row="3" column="1">
<widget class="QDialogButtonBox" name="buttonBox">
<property name="sizePolicy">
<sizepolicy hsizetype="Maximum" vsizetype="Fixed">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="standardButtons">
<set>QDialogButtonBox::Close</set>
</property>
</widget>
</item>
</layout>
</widget>
<customwidgets>
</customwidgets>
<resources/>
<connections/>
</ui>
......@@ -46,12 +46,11 @@ SignatureDlg::SignatureDlg(TransferHandler *transfer, const QUrl &dest, QWidget
m_signature(transfer->signature(dest)),
m_fileModel(transfer->fileModel())
{
setCaption(i18nc("Signature here is meant in cryptographic terms, so the signature of a file.", "Signature of %1.", dest.fileName()));
QWidget *widget = new QWidget(this);
ui.setupUi(widget);
setWindowTitle(i18nc("Signature here is meant in cryptographic terms, so the signature of a file.", "Signature of %1.", dest.fileName()));
ui.setupUi(this);
ui.loadSignature->setIcon(QIcon::fromTheme("document-open"));
ui.verify->setIcon(QIcon::fromTheme("document-encrypt"));
setMainWidget(widget);
ui.information->setCloseButtonVisible(false);
ui.information->setWordWrap(true);
......@@ -74,6 +73,8 @@ SignatureDlg::SignatureDlg(TransferHandler *transfer, const QUrl &dest, QWidget
ui.sigGroup->hide();
ui.keyGroup->hide();
}
connect(ui.buttonBox, &QDialogButtonBox::accepted, this, &QDialog::accept);
connect(ui.buttonBox, &QDialogButtonBox::rejected, this, &QDialog::reject);
}
void SignatureDlg::fileFinished(const QUrl &file)
......
......@@ -7,7 +7,7 @@
<x>0</x>
<y>0</y>
<width>400</width>
<height>446</height>
<height>492</height>
</rect>
</property>
<layout class="QVBoxLayout" name="verticalLayout_2">
......@@ -310,6 +310,13 @@
</layout>
</widget>
</item>
<item>
<widget class="QDialogButtonBox" name="buttonBox">
<property name="standardButtons">
<set>QDialogButtonBox::Cancel|QDialogButtonBox::Ok</set>
</property>
</widget>
</item>
</layout>
</widget>
<customwidgets>
......
......@@ -30,11 +30,11 @@ TransferSettingsDialog::TransferSettingsDialog(QWidget *parent, TransferHandler
m_model(m_transfer->fileModel()),
m_proxy(0)
{
setCaption(i18n("Transfer Settings for %1", m_transfer->source().fileName()));
showButtonSeparator(true);
QWidget *widget = new QWidget(this);
ui.setupUi(widget);
setMainWidget(widget);
setWindowTitle(i18n("Transfer Settings for %1", m_transfer->source().fileName()));
//showButtonSeparator(true);
ui.setupUi(this);
ui.ktitlewidget->setPixmap(QIcon::fromTheme("preferences-other").pixmap(16));
ui.downloadSpin->setValue(m_transfer->downloadLimit(Transfer::VisibleSpeedLimit));
ui.uploadSpin->setValue(m_transfer->uploadLimit(Transfer::VisibleSpeedLimit));
......@@ -72,6 +72,9 @@ TransferSettingsDialog::TransferSettingsDialog(QWidget *parent, TransferHandler
connect(ui.mirrors, &QPushButton::clicked, this, &TransferSettingsDialog::slotMirrors);
connect(ui.verification, &QPushButton::clicked, this, &TransferSettingsDialog::slotVerification);
connect(ui.signature, &QPushButton::clicked, this, &TransferSettingsDialog::slotSignature);
connect(ui.buttonBox, &QDialogButtonBox::accepted, this, &QDialog::accept);
connect(ui.buttonBox, &QDialogButtonBox::rejected, this, &QDialog::reject);
}
TransferSettingsDialog::~TransferSettingsDialog()
......@@ -83,7 +86,7 @@ TransferSettingsDialog::~TransferSettingsDialog()
QSize TransferSettingsDialog::sizeHint() const
{
QSize sh = KDialog::sizeHint();
QSize sh = QDialog::sizeHint();
sh.setWidth(sh.width() * 1.7);
return sh;
}
......@@ -108,7 +111,7 @@ void TransferSettingsDialog::updateCapabilities()
void TransferSettingsDialog::slotMirrors()
{
const QModelIndex index = m_proxy->mapToSource(ui.treeView->selectionModel()->selectedIndexes().first());
KDialog *mirrors = new MirrorSettings(this, m_transfer, m_model->getUrl(index));
QDialog *mirrors = new MirrorSettings(this, m_transfer, m_model->getUrl(index));
mirrors->setAttribute(Qt::WA_DeleteOnClose);
mirrors->show();
}
......@@ -124,7 +127,7 @@ void TransferSettingsDialog::slotRename()
void TransferSettingsDialog::slotVerification()
{
const QModelIndex index = m_proxy->mapToSource(ui.treeView->selectionModel()->selectedIndexes().first());
KDialog *verification = new VerificationDialog(this, m_transfer, m_model->getUrl(index));
QDialog *verification = new VerificationDialog(this, m_transfer, m_model->getUrl(index));
verification->setAttribute(Qt::WA_DeleteOnClose);
verification->show();
}
......
......@@ -12,14 +12,14 @@
</property>
<layout class="QVBoxLayout" name="verticalLayout_3">
<item>
<widget class="KTitleWidget" name="ktitlewidget">
<widget class="KTitleWidget" name="ktitlewidget" native="true">
<property name="sizePolicy">
<sizepolicy hsizetype="Minimum" vsizetype="Maximum">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="text">
<property name="text" stdset="0">
<string>Transfer Settings</string>
</property>
</widget>
......@@ -40,11 +40,7 @@
</widget>
</item>
<item row="0" column="1">
<widget class="KUrlRequester" name="destination">
<property name="mode">
<set>KFile::Directory|KFile::ExistingOnly</set>
</property>
</widget>
<widget class="KUrlRequester" name="destination"/>
</item>
<item row="1" column="1">
<widget class="QSpinBox" name="uploadSpin">
......@@ -101,7 +97,7 @@
<item row="2" column="0">
<widget class="QLabel" name="labelDownload">
<property name="text">
<string>&amp;Download limit:</string>
<string>Download &amp;limit:</string>
</property>
<property name="buddy">
<cstring>downloadSpin</cstring>
......@@ -111,7 +107,7 @@
<item row="3" column="0">
<widget class="QLabel" name="labelShareRatio">
<property name="text">
<string>Maximum &amp;share ratio:</string>
<string>Ma&amp;ximum share ratio:</string>
</property>
<property name="buddy">
<cstring>ratioSpin</cstring>
......@@ -194,6 +190,13 @@
</item>
</layout>
</item>
<item>
<widget class="QDialogButtonBox" name="buttonBox">
<property name="standardButtons">
<set>QDialogButtonBox::Cancel|QDialogButtonBox::Ok</set>
</property>
</widget>
</item>
</layout>
</widget>
<customwidgets>
......@@ -206,6 +209,7 @@
<class>KUrlRequester</class>
<extends>QFrame</extends>
<header>kurlrequester.h</header>
<container>1</container>
</customwidget>
</customwidgets>
<resources/>
......
......@@ -92,11 +92,10 @@ VerificationDialog::VerificationDialog(QWidget *parent, TransferHandler *transfe
connect(m_verifier, &Verifier::verified, this, &VerificationDialog::slotVerified);
}
setCaption(i18n("Transfer Verification for %1", file.fileName()));
showButtonSeparator(true);
QWidget *widget = new QWidget(this);
ui.setupUi(widget);
setMainWidget(widget);
setWindowTitle(i18n("Transfer Verification for %1", file.fileName()));
ui.setupUi(this);
KGuiItem::assign(ui.add, KStandardGuiItem::add());
KGuiItem::assign(ui.remove, KStandardGuiItem::remove());
ui.verifying->hide();
......@@ -128,14 +127,14 @@ VerificationDialog::VerificationDialog(QWidget *parent, TransferHandler *transfe
connect(ui.verify, &QPushButton::clicked, this, &VerificationDialog::verifyClicked);
}
setButtons(KDialog::Close);
connect(this, &VerificationDialog::finished, this, &VerificationDialog::slotFinished);
connect(ui.buttonBox, &QDialogButtonBox::rejected, this, &QDialog::reject);
connect(ui.buttonBox, &QDialogButtonBox::accepted, this, &QDialog::accept);
}
QSize VerificationDialog::sizeHint() const
{
QSize sh = KDialog::sizeHint();
QSize sh = QDialog::sizeHint();
sh.setWidth(sh.width() * 1.2);
return sh;
}
......
......@@ -24,6 +24,7 @@
#include "ui_verificationadddlg.h"
#include "../core/basedialog.h"
#include <KDialog>
class FileModel;
class QSortFilterProxyModel;
......
......@@ -11,32 +11,48 @@
</rect>
</property>
<layout class="QGridLayout" name="gridLayout">
<item row="0" column="0" rowspan="4">
<widget class="QTreeView" name="usedHashes">
<property name="selectionMode">
<enum>QAbstractItemView::ExtendedSelection</enum>
</property>
<property name="rootIsDecorated">
<bool>false</bool>
</property>
<property name="uniformRowHeights">
<bool>true</bool>
</property>
<property name="itemsExpandable">