Commit Graph

31 Commits

Author SHA1 Message Date
Andrius Štikonas 02e4359889 Apply colour scheme to secondary (MBR logical) partitions
BUG: 418648
2020-10-05 18:24:31 +01:00
Andrius Štikonas ad48c72af8 Switch to SPDX license headers. 2020-09-16 00:35:12 +01:00
Andrius Štikonas 51f4a2da04 Compile partitionmanager with Q_NO_KEYWORDS. 2020-09-15 02:26:56 +01:00
Andrius Štikonas e7ac5e5fa2 Q_FOREACH porting. 2016-09-01 00:44:33 +01:00
Andrius Štikonas 7f0ab53f8a Cleanup includes a bit. 2016-08-23 16:40:16 +01:00
Andrius Štikonas 5267f9825a Convert some more for loops to ranged based loop. 2016-08-15 17:38:00 +01:00
Andrius Štikonas 561269a2e6 Convert to C++11 for loop where it is safe to do so. 2016-08-15 17:38:00 +01:00
Andrius Štikonas f81cb3cc30 Improve semantic markup. 2016-07-18 02:21:14 +01:00
Andrius Štikonas cf891183cb
Always use because it is type safe. 2016-04-14 19:18:36 +01:00
Andrius Štikonas 9c91e25e96 Update copyright. 2016-03-02 18:33:40 +00:00
Teo Mrnjavac 5e7c9f7131 Fix crash when applying settings. 2016-02-26 15:32:14 +01:00
Andrius Štikonas 15b7fa3470 kpmcore/ prefix in #includes is no longer required. 2016-01-12 00:12:49 +00:00
Teo Mrnjavac 6e1ff468d3 Set partition color code on PartWidget, and react to settings change. 2015-07-17 13:37:30 +02:00
Andrius Štikonas 81004a2445 Format partitionmanager code using KDE style. 2015-07-13 17:17:41 +03:00
Teo Mrnjavac cf51fa1ad0 Move PartResizerWidget and related to KPMcore. 2015-07-08 18:16:03 +02:00
Andrius Štikonas b651d8de89 Move kpmcore to another repository (sysadmin/kpmcore) 2015-06-04 01:51:56 +01:00
Andrius Štikonas bbb2fa3067 Use GPLv3 copyright notices. 2015-02-07 00:32:25 +00:00
Andrius Štikonas ed431cfcd5 Partially port away from KLocale.
KLocale was replaced with KLocalizedString and QLocale.
Only changes that do not break compilation with KDELibs4 are made.
2014-05-13 23:53:37 +01:00
Andrius Štikonas 2b537490ad Port away from KDebug. 2014-05-13 14:47:35 +01:00
Volker Lanz 68d1eb14ce use a PartWidget instead of a PartResizerWidget in the partition properties
dialog -- no one is going to do any resizing, after all.

to make this possible, allow creating a PartWidget() without a valid Partition
pointer and add an init() method for later setting the Partition pointer. also
take care of the Partition pointer being NULL everywhere in the class

svn path=/trunk/extragear/sysadmin/partitionmanager/; revision=1134172
2010-06-03 15:01:53 +00:00
Volker Lanz ec44af261e move childWidgets() from PartWidget and PartTableWidget to the common base
class

svn path=/trunk/extragear/sysadmin/partitionmanager/; revision=1114051
2010-04-12 16:22:14 +00:00
Volker Lanz 92a9bd2878 make PartWidgetBase a QWidget
svn path=/trunk/extragear/sysadmin/partitionmanager/; revision=1114049
2010-04-12 16:14:10 +00:00
Volker Lanz 22978e66b8 don't keep a list of our children in PartTableWidget either; like in
PartWidget, we can just let Qt handle that for us

svn path=/trunk/extragear/sysadmin/partitionmanager/; revision=1114047
2010-04-12 16:08:13 +00:00
Volker Lanz c1a6713e45 Remember the active PartWidget in the widget, not in the PartTableWidget. This
means the PartWidget doesn't need to know its PartTableWidget anymore.

Don't keep a list of child widgets, Qt will do that for us.

Remove the showChildren param and property from PartWidget, it wasn't used
anymore.

Rename active() to isActive() in PartWidget for consistency.


svn path=/trunk/extragear/sysadmin/partitionmanager/; revision=1114033
2010-04-12 14:35:02 +00:00
Volker Lanz 0d2f3ccc84 clean up partwidget class: don't use qpointers, don't use a pointer for access
to the partition property. still needs more work.

svn path=/trunk/extragear/sysadmin/partitionmanager/; revision=1113951
2010-04-12 10:55:13 +00:00
Volker Lanz 2eb8c42c1d Remove the few lines related to dbus stuff as long as we're not using any of it
anyway.

Refactor PartitionManagerWidget() and MainWindopw(), moving lots of stuff not
directly related to the PartTableWidget/TreePartition-combo from the former to
the latter. This completely breaks the KCM for now.

Remember the currently selected device across rescans.

Use the partition and device container widget for the context menus of
partitions and devices.

Use QMegatObject::connectSlotByName() where possible, even setting object names
where required to make that work.

Emit operationsChanged() and devicesChanged() in OperationStack because only
that makes any sense.

Add devices properties to toolbar.

Rename itemActivated signal in PartTableWidget to itemDoubleClicked.

DeviceScanner, OperationRunner and OperationStack are child QObjects of
MainWindow now.


svn path=/trunk/extragear/sysadmin/partitionmanager/; revision=1095086
2010-02-23 16:30:05 +00:00
Volker Lanz 1f3ed68b34 add read-only flag to PartTableWidget
svn path=/trunk/extragear/sysadmin/partitionmanager/; revision=1091653
2010-02-17 10:06:23 +00:00
Volker Lanz 765e4a381d Don't static_cast a child to a partition widget, use qobject_cast to make sure
we don't get unintended side effects.

BUG:218532

svn path=/trunk/extragear/sysadmin/partitionmanager/; revision=1062049
2009-12-13 16:48:07 +00:00
Volker Lanz 306667e09e Don't assume a device always has a valid partition table. This is the correct
fix for what I initially tried to fix with commit 898001.

svn path=/trunk/extragear/sysadmin/partitionmanager/; revision=908045
2009-01-09 07:10:59 +00:00
Volker Lanz f10ffb5001 Show an info message if no device is selected or the selected device has no
valid partition table.

No need to overwrite paintEvent().

svn path=/trunk/playground/sysadmin/partitionmanager/; revision=868394
2008-10-06 09:18:31 +00:00
Volker Lanz d6dc26bd90 import of KDE Partition Manager
svn path=/trunk/playground/sysadmin/partitionmanager/; revision=864431
2008-09-24 19:32:01 +00:00