Adriaan de Groot
0e7c984854
[partition] Add missing includes for Qt 5.15 compatibility
2020-06-03 16:43:31 +02:00
Adriaan de Groot
1c598d769b
[partition] Apply coding style (to just this one file)
2020-06-03 16:42:42 +02:00
Adriaan de Groot
3e51fe4651
[partition] Remove spurious Q_FUNC_INFO from logging
...
- The Q_FUNC_INFO was integrated into regular logging with commit
5248a37eb3
2020-05-19 16:44:44 +02:00
Adriaan de Groot
4b3bb54320
[libcalamares] Move partition-finding into libcalamares
...
- Moved from KPMHelpers to the partition service
- The is-partition and find-partition methods that make sense
in general, are moved to libcalamares.
2019-06-13 14:41:33 +02:00
Adriaan de Groot
4202126f34
[fsresizer] [partition] Fix build with moved headers
...
- PartitionIterator has moved into libcalamares
- While here, sort and organize #include lines
- Add using to keep code impact small
2019-06-13 12:27:39 +02:00
Adriaan de Groot
cef2f50510
Reduce warnings about extra ;
...
- Trailing ; after Q_UNUSED
- Trailing ; after CALAMARES_RETRANSLATE
2019-04-18 12:06:09 +02:00
Adriaan de Groot
762ad54344
Documentation: change http links to GitHub to https
2017-12-20 08:39:09 -05:00
Adriaan de Groot
31fa9e4251
Clang: fix warnings on partition splitter
...
- initialize all the fields
- member-initialization order
- silence warnings about double<->int
- drop unused parameter to setSplitPartition
2017-09-10 06:17:28 -04:00
Andrius Štikonas
9f0ca042fe
Port away from most cases of Q_FOREACH to C++11 ranged for loop.
...
In order to avoid deep copies, Qt containers over which we iterate must be const
The remaining unported cases require qAsConst (Qt 5.7) or std::as_const (C++17)
2016-09-01 16:46:14 +01:00
Teo Mrnjavac
7e89e67059
Initialize all members (fix Coverity defect 98206).
2016-02-26 13:39:41 +01:00
Teo Mrnjavac
749a740ffa
Ensure the resizing items aren't null (fix Coverity defect 121862).
2016-02-26 13:13:01 +01:00
Teo Mrnjavac
1e3e1d22bb
Fix build.
2016-02-23 14:43:12 +01:00
Teo Mrnjavac
3c8aee7b5e
Add resizing state flag to Splitter items.
...
New iterator for Splitter items.
Use std::function instead of templates for type safety.
2016-02-23 10:50:48 +01:00
Teo Mrnjavac
bafaa6a225
Keep Splitter items on the stack.
2016-02-22 18:51:44 +01:00
Teo Mrnjavac
7bf0fa2575
Get better debug information.
2016-02-22 16:39:06 +01:00
Teo Mrnjavac
d6de5be8d0
Don't segfault on free space in Splitter widget.
2016-02-22 15:51:50 +01:00
Teo Mrnjavac
569f2d9d50
Use iterators instead.
2016-02-17 17:17:50 +01:00
Teo Mrnjavac
dc038dfe1e
Useless code is useless.
2016-02-17 16:52:21 +01:00
Teo Mrnjavac
4781bc0f7a
Use a QVector.
2016-02-17 16:46:51 +01:00
Teo Mrnjavac
c1b4320f5c
Correctly handle free space in Splitter widget.
2016-02-17 16:41:05 +01:00
Teo Mrnjavac
7f6199ad37
Remember to update total.
2016-02-17 16:36:13 +01:00
Teo Mrnjavac
7bf918bfee
Compensate for small partition visibility in Splitter widget.
2016-02-17 16:25:01 +01:00
Teo Mrnjavac
65f5da5a8d
Draw nested partition enable/disable support in Splitter widget.
2016-02-10 17:02:10 +01:00
Teo Mrnjavac
3f9aae9af6
Fix splitter handle placement on child partitions.
2016-01-13 16:23:12 +01:00
Teo Mrnjavac
9682520c61
Draw the handle when it matters.
2016-01-13 16:17:38 +01:00
Teo Mrnjavac
3238498e48
Don't crash.
2016-01-13 16:15:19 +01:00
Teo Mrnjavac
491e046824
Robust means not broken, please.
2016-01-13 16:12:51 +01:00
Teo Mrnjavac
5eb6f6799e
Try to make it more robust.
2016-01-13 16:12:08 +01:00
Teo Mrnjavac
cb63d7d302
Draw the partitions in the alongside view even when not resizing.
2016-01-12 14:04:44 +01:00
Teo Mrnjavac
f2add6f2c2
Remove leftover return that was wrecking havoc.
2016-01-12 13:18:26 +01:00
Teo Mrnjavac
1bc0c41f02
Restore sizes.
2016-01-12 13:05:11 +01:00
Teo Mrnjavac
430a4feea9
Allow changing the to be resized partition without a reinit.
2016-01-12 12:48:39 +01:00
Teo Mrnjavac
46ea8a484e
Update year.
2016-01-11 17:30:33 +01:00
Teo Mrnjavac
92127e1abe
Unbreak build.
2016-01-11 15:57:57 +01:00
Teo Mrnjavac
56292974a4
Bring PartitionSplitterWidget layout up to PartitionBarsView level.
2016-01-11 15:54:10 +01:00
Teo Mrnjavac
6a93f34c15
Move init logic into PartitionSplitterWidget.
2016-01-11 15:14:47 +01:00
Teo Mrnjavac
83cbe16918
Fixup preview height.
2015-12-30 17:27:13 +01:00
Teo Mrnjavac
c6a7c54904
Preview widget height.
2015-12-30 17:27:13 +01:00
Teo Mrnjavac
23c21074af
Initialize all the things in PartitionSplitterWidget.
2015-06-14 00:45:38 +02:00
Teo Mrnjavac
96c840e878
Use proper color for new partition in PartitionSplitterWidget.
2015-04-28 17:09:24 +02:00
Teo Mrnjavac
c7f46136fc
Do not crash.
2015-03-19 17:28:30 +01:00
Teo Mrnjavac
ce407a5ec4
Use good old C++ template instead of auto parameter which needs C++1y.
2014-10-07 16:07:28 +02:00
Teo Mrnjavac
961eadada4
New UI and logic for Alongside autopartitioning+install.
2014-10-07 16:07:28 +02:00