Compare commits

..

12 Commits

Author SHA1 Message Date
Andrius Štikonas 8476f707ab
Bump version to 4.0 in preparation for future release. 2019-04-16 20:22:50 +01:00
Andrius Štikonas f6e22288b9
Require Frameworks 5.56 as this is what KPMcore needs anyway. 2019-03-10 22:29:58 +00:00
l10n daemon script b83ddced49 GIT_SILENT made messages (after extraction) 2019-03-10 03:11:37 +01:00
Andrius Štikonas a6861bf202 When importing partition table, pass the flags to Partition class.
Note, this is not enough for flags to work. We need to run a job to set flags.

CCBUG: 400331
2019-02-28 00:16:50 +00:00
Andrius Štikonas cf513b9873 Use explicit class method overrides. 2019-02-28 00:16:32 +00:00
Andrius Štikonas 730b2a9992 Fix race condition in reading fstype on partition table import.
Thanks to Christoph Vogtländer for reporting and fixing.

BUG: 400330
2019-02-27 23:15:17 +00:00
Andrius Štikonas 2a90cc4652
Add syntax highlighing for code snippets in README.md. Try 2 2019-02-16 00:12:05 +00:00
Andrius Štikonas 52513f9c75
Add syntax highlighing for code snippets in README.md 2019-02-16 00:11:12 +00:00
Andrius Štikonas db7401229c
Rename changelog file. 2019-02-16 00:08:14 +00:00
l10n daemon script 0e714dee65 SVN_SILENT made messages (.desktop file) - always resolve ours
In case of conflict in i18n, keep the version of the branch "ours"
To resolve a particular conflict, "git checkout --ours path/to/file.desktop"
2019-02-10 05:24:10 +01:00
Andrius Štikonas 98d59e69ff
Use scoped enums for PartitionTable::Flag. 2019-02-10 01:30:02 +00:00
Andrius Štikonas 1d86260ad5
Use strongly typed enum for Capacity::Unit. 2019-02-10 00:50:12 +00:00
9 changed files with 28 additions and 27 deletions

View File

@ -20,16 +20,16 @@ cmake_minimum_required(VERSION 3.1 FATAL_ERROR)
# Dependencies
set(QT_MIN_VERSION "5.10.0")
set(KF5_MIN_VERSION "5.31")
set(KPMCORE_MIN_VERSION "3.80.0")
set(KF5_MIN_VERSION "5.56")
set(KPMCORE_MIN_VERSION "4.0.0")
set(CMAKE_USE_RELATIVE_PATHS OFF)
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)
# Check KPMcore dependency when bumping
set(VERSION_MAJOR "3")
set(VERSION_MINOR "80")
set(VERSION_MAJOR "4")
set(VERSION_MINOR "0")
set(VERSION_RELEASE "0")
set(VERSION ${VERSION_MAJOR}.${VERSION_MINOR}.${VERSION_RELEASE})
add_definitions(-D'VERSION="${VERSION}"') #"

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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