Compare commits

..

No commits in common. "8476f707ab54dc2d0ead3755554e626fed21b700" and "135853ef50b1631512e4233d5f2335c125982c09" have entirely different histories.

9 changed files with 27 additions and 28 deletions

View File

@ -20,16 +20,16 @@ cmake_minimum_required(VERSION 3.1 FATAL_ERROR)
# Dependencies # Dependencies
set(QT_MIN_VERSION "5.10.0") set(QT_MIN_VERSION "5.10.0")
set(KF5_MIN_VERSION "5.56") set(KF5_MIN_VERSION "5.31")
set(KPMCORE_MIN_VERSION "4.0.0") set(KPMCORE_MIN_VERSION "3.80.0")
set(CMAKE_USE_RELATIVE_PATHS OFF) set(CMAKE_USE_RELATIVE_PATHS OFF)
set(CMAKE_BUILD_WITH_INSTALL_RPATH ON) set(CMAKE_BUILD_WITH_INSTALL_RPATH ON)
set(KDE_INSTALL_USE_QT_SYS_PATHS ON CACHE BOOL "Install mkspecs files, Plugins and Imports to the Qt 5 install dir" FORCE) set(KDE_INSTALL_USE_QT_SYS_PATHS ON CACHE BOOL "Install mkspecs files, Plugins and Imports to the Qt 5 install dir" FORCE)
# Check KPMcore dependency when bumping # Check KPMcore dependency when bumping
set(VERSION_MAJOR "4") set(VERSION_MAJOR "3")
set(VERSION_MINOR "0") set(VERSION_MINOR "80")
set(VERSION_RELEASE "0") set(VERSION_RELEASE "0")
set(VERSION ${VERSION_MAJOR}.${VERSION_MINOR}.${VERSION_RELEASE}) set(VERSION ${VERSION_MAJOR}.${VERSION_MINOR}.${VERSION_RELEASE})
add_definitions(-D'VERSION="${VERSION}"') #" add_definitions(-D'VERSION="${VERSION}"') #"

View File

@ -43,7 +43,7 @@ your OS' package management app.
### Ubuntu ### Ubuntu
```bash ```
sudo apt install partitionmanager sudo apt install partitionmanager
``` ```
@ -51,35 +51,35 @@ sudo apt install partitionmanager
As the `root` user: As the `root` user:
```bash ```
apt install partitionmanager apt install partitionmanager
``` ```
### CentOS, Fedora, RHEL ### CentOS, Fedora, RHEL
```bash ```
sudo yum install kde-partitionmanager sudo yum install kde-partitionmanager
``` ```
### OpenSUSE ### OpenSUSE
```bash ```
sudo zypper install partitionmanager sudo zypper install partitionmanager
``` ```
### ArchLinux ### ArchLinux
1. Enable the community repository on `/etc/pacman.conf`: 1. Enable the community repository on `/etc/pacman.conf`:
```ini ```
[community] [community]
Include = /etc/pacman.d/mirrorlist Include = /etc/pacman.d/mirrorlist
``` ```
1. Install the `partitionmanager` xz package: 1. Install the `partitionmanager` xz package:
```bash ```
pacman -Sy partitionmanager # pacman -Sy partitionmanager
``` ```
### Gentoo ### Gentoo
```bash ```
sudo emerge partitionmanager sudo emerge partitionmanager
``` ```

View File

@ -1010,7 +1010,7 @@ void MainWindow::onImportPartitionTable()
qint32 num = rePartition.captured(1).toInt(); qint32 num = rePartition.captured(1).toInt();
qint64 firstSector = rePartition.captured(2).toLongLong(); qint64 firstSector = rePartition.captured(2).toLongLong();
qint64 lastSector = rePartition.captured(3).toLongLong(); qint64 lastSector = rePartition.captured(3).toLongLong();
QString fsName = rePartition.captured(4); QLatin1String fsName = QLatin1String(rePartition.captured(4).toLatin1());
QString roleNames = rePartition.captured(5); QString roleNames = rePartition.captured(5);
QString volumeLabel = rePartition.captured(6).replace(QStringLiteral("\""), QString()); QString volumeLabel = rePartition.captured(6).replace(QStringLiteral("\""), QString());
QStringList flags = rePartition.captured(7).replace(QStringLiteral("\""), QString()).split(QStringLiteral(",")); QStringList flags = rePartition.captured(7).replace(QStringLiteral("\""), QString()).split(QStringLiteral(","));
@ -1064,7 +1064,7 @@ void MainWindow::onImportPartitionTable()
if (fs->supportSetLabel() != FileSystem::cmdSupportNone && !volumeLabel.isEmpty()) if (fs->supportSetLabel() != FileSystem::cmdSupportNone && !volumeLabel.isEmpty())
fs->setLabel(volumeLabel); fs->setLabel(volumeLabel);
Partition* p = new Partition(parent, device, role, fs, firstSector, lastSector, QString(), PartitionTable::flagsFromList(flags), QString(), false, PartitionTable::flagsFromList(flags), Partition::State::New); Partition* p = new Partition(parent, device, role, fs, firstSector, lastSector, QString(), PartitionTable::FlagNone, QString(), false, PartitionTable::FlagNone, Partition::State::New);
operationStack().push(new NewOperation(device, p)); operationStack().push(new NewOperation(device, p));
} else } else

View File

@ -70,8 +70,8 @@ protected:
void enableActions(); void enableActions();
void closeEvent(QCloseEvent*) override; void closeEvent(QCloseEvent*);
void changeEvent(QEvent* event) override; void changeEvent(QEvent* event);
void setSavedSelectedDeviceNode(const QString& s) { void setSavedSelectedDeviceNode(const QString& s) {
m_SavedSelectedDeviceNode = s; m_SavedSelectedDeviceNode = s;

View File

@ -34,7 +34,7 @@ class SmartAttrDelegate : public QStyledItemDelegate
public: public:
SmartAttrDelegate() : QStyledItemDelegate() {} SmartAttrDelegate() : QStyledItemDelegate() {}
virtual void paint(QPainter* painter, const QStyleOptionViewItem& option, const QModelIndex& index) const override; virtual void paint(QPainter* painter, const QStyleOptionViewItem& option, const QModelIndex& index) const;
}; };
void SmartAttrDelegate::paint(QPainter* painter, const QStyleOptionViewItem& option, const QModelIndex& index) const void SmartAttrDelegate::paint(QPainter* painter, const QStyleOptionViewItem& option, const QModelIndex& index) const

View File

@ -144,7 +144,6 @@
<p xml:lang="pt">Funcionalidades:</p> <p xml:lang="pt">Funcionalidades:</p>
<p xml:lang="pt-BR">Funcionalidades:</p> <p xml:lang="pt-BR">Funcionalidades:</p>
<p xml:lang="ro">Caracteristici:</p> <p xml:lang="ro">Caracteristici:</p>
<p xml:lang="ru">Возможности:</p>
<p xml:lang="sk">Funkcie:</p> <p xml:lang="sk">Funkcie:</p>
<p xml:lang="sl">Zmožnosti:</p> <p xml:lang="sl">Zmožnosti:</p>
<p xml:lang="sr">Могућности:</p> <p xml:lang="sr">Могућности:</p>

View File

@ -160,7 +160,7 @@ Icon=partitionmanager
Categories=System;Filesystem;KDE;Qt; Categories=System;Filesystem;KDE;Qt;
X-KDE-StartupNotify=true X-KDE-StartupNotify=true
Keywords=partition;disk; Keywords=partition;disk;
Keywords[ast]=partición;particionar;discu; Keywords[ast]=partición;discu;
Keywords[ca]=partició;disc; Keywords[ca]=partició;disc;
Keywords[ca@valencia]=partició;disc; Keywords[ca@valencia]=partició;disc;
Keywords[cs]=oddíl;disk; Keywords[cs]=oddíl;disk;

View File

@ -138,18 +138,18 @@
<entry key="defaultFileSystem" type="Int"> <entry key="defaultFileSystem" type="Int">
<default>static_cast&lt;int&gt;(FileSystem::Type::Ext4)</default> <default>static_cast&lt;int&gt;(FileSystem::Type::Ext4)</default>
</entry> </entry>
<entry key="preferredUnit" type="Enum"> <entry key="preferredUnit" type="Int">
<label context="@label">Preferred unit:</label> <label context="@label">Preferred unit:</label>
<choices> <choices>
<choice name="Byte"/> <choice name="Byte">Capacity::Byte</choice>
<choice name="KiB"/> <choice name="KiB">Capacity::KiB</choice>
<choice name="MiB"/> <choice name="MiB">Capacity::MiB</choice>
<choice name="GiB"/> <choice name="GiB">Capacity::GiB</choice>
<choice name="TiB"/> <choice name="TiB">Capacity::TiB</choice>
<choice name="PiB"/> <choice name="PiB">Capacity::PiB</choice>
<choice name="EiB"/> <choice name="EiB">Capacity::EiB</choice>
</choices> </choices>
<default>MiB</default> <default>Capacity::MiB</default>
</entry> </entry>
<entry key="shredSource" type="Enum"> <entry key="shredSource" type="Enum">
<choices> <choices>