Merge branch 'master' into luks-decorator
This commit is contained in:
commit
0d76d71fc4
|
@ -36,10 +36,10 @@ public:
|
|||
~ConfigureOptionsDialog();
|
||||
|
||||
protected Q_SLOTS:
|
||||
virtual void updateSettings();
|
||||
virtual void updateWidgetsDefault();
|
||||
virtual bool hasChanged();
|
||||
virtual bool isDefault();
|
||||
virtual void updateSettings() override;
|
||||
virtual void updateWidgetsDefault() override;
|
||||
virtual bool hasChanged() override;
|
||||
virtual bool isDefault() override;
|
||||
void onComboDefaultFileSystemActivated(int) {
|
||||
settingsChangedSlot();
|
||||
}
|
||||
|
|
|
@ -82,8 +82,8 @@ protected Q_SLOTS:
|
|||
void updateReport(bool force = false);
|
||||
|
||||
protected:
|
||||
void closeEvent(QCloseEvent* e);
|
||||
void keyPressEvent(QKeyEvent* e);
|
||||
void closeEvent(QCloseEvent* e) override;
|
||||
void keyPressEvent(QKeyEvent* e) override;
|
||||
|
||||
void setupConnections();
|
||||
|
||||
|
|
|
@ -16,3 +16,8 @@
|
|||
*************************************************************************/
|
||||
|
||||
#include "gui/applyprogressdialogwidget.h"
|
||||
|
||||
ApplyProgressDialogWidget::ApplyProgressDialogWidget(QWidget* parent) : QWidget(parent) {
|
||||
setupUi(this);
|
||||
m_TreeTasks->header()->setSectionResizeMode(QHeaderView::ResizeToContents);
|
||||
}
|
|
@ -27,9 +27,7 @@
|
|||
class ApplyProgressDialogWidget : public QWidget, public Ui::ApplyProgressDialogWidgetBase
|
||||
{
|
||||
public:
|
||||
ApplyProgressDialogWidget(QWidget* parent) : QWidget(parent) {
|
||||
setupUi(this);
|
||||
}
|
||||
ApplyProgressDialogWidget(QWidget* parent);
|
||||
|
||||
public:
|
||||
QTreeWidget& treeTasks() {
|
||||
|
|
|
@ -28,6 +28,9 @@
|
|||
<property name="columnCount">
|
||||
<number>2</number>
|
||||
</property>
|
||||
<attribute name="headerStretchLastSection">
|
||||
<bool>true</bool>
|
||||
</attribute>
|
||||
<column>
|
||||
<property name="text">
|
||||
<string>Operations and Jobs</string>
|
||||
|
|
|
@ -42,7 +42,7 @@ protected:
|
|||
}
|
||||
|
||||
protected Q_SLOTS:
|
||||
void accept();
|
||||
void accept() override;
|
||||
|
||||
private:
|
||||
Partition& partition() {
|
||||
|
|
|
@ -43,7 +43,7 @@ public:
|
|||
~FileSystemSupportDialog();
|
||||
|
||||
public:
|
||||
QSize sizeHint() const;
|
||||
QSize sizeHint() const override;
|
||||
|
||||
protected Q_SLOTS:
|
||||
void onButtonRescanClicked();
|
||||
|
|
|
@ -27,8 +27,8 @@ public:
|
|||
FormattedSpinBox(QWidget* parent = nullptr) : QDoubleSpinBox(parent) {}
|
||||
|
||||
public:
|
||||
virtual QString textFromValue(double value) const;
|
||||
virtual double valueFromText(const QString& text) const;
|
||||
virtual QString textFromValue(double value) const override;
|
||||
virtual double valueFromText(const QString& text) const override;
|
||||
|
||||
private:
|
||||
QString stripped(const QString &t, int *pos = 0) const;
|
||||
|
|
|
@ -43,8 +43,8 @@ protected:
|
|||
const Partition& destPartition() const {
|
||||
return m_DestPartition;
|
||||
}
|
||||
virtual bool canGrow() const;
|
||||
virtual bool canShrink() const {
|
||||
virtual bool canGrow() const override;
|
||||
virtual bool canShrink() const override {
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
|
@ -42,26 +42,26 @@ public:
|
|||
~NewDialog();
|
||||
|
||||
protected Q_SLOTS:
|
||||
void accept();
|
||||
void accept() override;
|
||||
void onRoleChanged(bool);
|
||||
void onFilesystemChanged(int);
|
||||
void onLabelChanged(const QString& newLabel);
|
||||
|
||||
protected:
|
||||
void setupConnections();
|
||||
void setupDialog();
|
||||
void setupConnections() override;
|
||||
void setupDialog() override;
|
||||
void updateHideAndShow();
|
||||
void updateFileSystem(FileSystem::Type t);
|
||||
PartitionRole::Roles partitionRoles() const {
|
||||
return m_PartitionRoles;
|
||||
}
|
||||
virtual bool canGrow() const {
|
||||
virtual bool canGrow() const override {
|
||||
return true;
|
||||
}
|
||||
virtual bool canShrink() const {
|
||||
virtual bool canShrink() const override {
|
||||
return true;
|
||||
}
|
||||
virtual bool canMove() const {
|
||||
virtual bool canMove() const override {
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
|
@ -394,7 +394,7 @@ void PartitionManagerWidget::onMountPartition()
|
|||
KMessageBox::detailedSorry(this, xi18nc("@info", "The file system on partition <filename>%1</filename> could not be mounted.", p->deviceNode()), QStringLiteral("<pre>%1</pre>").arg(report.toText()), i18nc("@title:window", "Could Not Mount File System."));
|
||||
} else if (p->canUnmount()) {
|
||||
if (!p->unmount(report))
|
||||
KMessageBox::detailedSorry(this, xi18nc("@info", "The file system on partition <filename>%1</filename> could not be unmounted.", p->deviceNode()), QStringLiteral("pre>%1</pre>").arg(report.toText()), i18nc("@title:window", "Could Not Unmount File System."));
|
||||
KMessageBox::detailedSorry(this, xi18nc("@info", "The file system on partition <filename>%1</filename> could not be unmounted.", p->deviceNode()), QStringLiteral("<pre>%1</pre>").arg(report.toText()), i18nc("@title:window", "Could Not Unmount File System."));
|
||||
}
|
||||
|
||||
if (p->roles().has(PartitionRole::Logical)) {
|
||||
|
|
|
@ -40,10 +40,10 @@ class PartTableWidget : public PartWidgetBase
|
|||
|
||||
public:
|
||||
PartTableWidget(QWidget* parent);
|
||||
virtual qint32 borderWidth() const {
|
||||
virtual qint32 borderWidth() const override {
|
||||
return 0; /**< @return border width */
|
||||
}
|
||||
virtual qint32 borderHeight() const {
|
||||
virtual qint32 borderHeight() const override {
|
||||
return 0; /**< @return border height */
|
||||
}
|
||||
|
||||
|
@ -68,9 +68,9 @@ Q_SIGNALS:
|
|||
void itemDoubleClicked(const PartWidget*);
|
||||
|
||||
protected:
|
||||
void resizeEvent(QResizeEvent* event);
|
||||
void mousePressEvent(QMouseEvent* event);
|
||||
void mouseDoubleClickEvent(QMouseEvent* event);
|
||||
void resizeEvent(QResizeEvent* event) override;
|
||||
void mousePressEvent(QMouseEvent* event) override;
|
||||
void mouseDoubleClickEvent(QMouseEvent* event) override;
|
||||
|
||||
const PartitionTable* partitionTable() const {
|
||||
return m_PartitionTable;
|
||||
|
|
|
@ -21,7 +21,7 @@
|
|||
|
||||
#include "gui/sizedialogbase.h"
|
||||
|
||||
#include <qglobal.h>
|
||||
#include <QtGlobal>
|
||||
|
||||
class Partition;
|
||||
class Device;
|
||||
|
@ -48,15 +48,15 @@ public:
|
|||
}
|
||||
|
||||
public Q_SLOTS:
|
||||
virtual void accept();
|
||||
virtual void reject();
|
||||
virtual void accept() override;
|
||||
virtual void reject() override;
|
||||
|
||||
protected:
|
||||
virtual bool canGrow() const;
|
||||
virtual bool canShrink() const;
|
||||
virtual bool canMove() const;
|
||||
virtual void setupDialog();
|
||||
virtual void setDirty();
|
||||
virtual bool canGrow() const override;
|
||||
virtual bool canShrink() const override;
|
||||
virtual bool canMove() const override;
|
||||
virtual void setupDialog() override;
|
||||
virtual void setDirty() override;
|
||||
void rollback();
|
||||
void setResizedFirstSector(qint64 s) {
|
||||
m_ResizedFirstSector = s;
|
||||
|
|
|
@ -31,7 +31,7 @@ public:
|
|||
ScanProgressDialog(QWidget* parent);
|
||||
|
||||
protected:
|
||||
virtual void showEvent(QShowEvent* e);
|
||||
virtual void showEvent(QShowEvent* e) override;
|
||||
|
||||
public:
|
||||
void setProgress(quint32 p) {
|
||||
|
|
|
@ -21,7 +21,7 @@
|
|||
|
||||
#include <util/capacity.h>
|
||||
|
||||
#include <qglobal.h>
|
||||
#include <QtGlobal>
|
||||
#include <QDebug>
|
||||
#include <QDialog>
|
||||
#include <QPushButton>
|
||||
|
|
|
@ -34,7 +34,7 @@
|
|||
#include <QTextDocument>
|
||||
#include <QTextStream>
|
||||
#include <QTreeWidgetItem>
|
||||
#include <qglobal.h>
|
||||
#include <QtGlobal>
|
||||
|
||||
#include <KConfigGroup>
|
||||
#include <KFormat>
|
||||
|
|
Loading…
Reference in New Issue