diff options
author | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2017-10-05 19:24:46 -0500 |
---|---|---|
committer | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2017-10-05 19:24:46 -0500 |
commit | d9a0674ee440e58733dacb4ff0b1f3b30f7e2d3f (patch) | |
tree | eb19580639a836515fcd1086b26ccaf6af61d1b4 /user/plasma-workspace/plasma-workspace-5.8-honour-uint.patch | |
parent | 3ab7801c9e6cddc381992f604d57a89f594feeaa (diff) | |
download | packages-d9a0674ee440e58733dacb4ff0b1f3b30f7e2d3f.tar.gz packages-d9a0674ee440e58733dacb4ff0b1f3b30f7e2d3f.tar.bz2 packages-d9a0674ee440e58733dacb4ff0b1f3b30f7e2d3f.tar.xz packages-d9a0674ee440e58733dacb4ff0b1f3b30f7e2d3f.zip |
user/plasma-workspace: new package
Diffstat (limited to 'user/plasma-workspace/plasma-workspace-5.8-honour-uint.patch')
-rw-r--r-- | user/plasma-workspace/plasma-workspace-5.8-honour-uint.patch | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/user/plasma-workspace/plasma-workspace-5.8-honour-uint.patch b/user/plasma-workspace/plasma-workspace-5.8-honour-uint.patch new file mode 100644 index 000000000..a5e16d7b3 --- /dev/null +++ b/user/plasma-workspace/plasma-workspace-5.8-honour-uint.patch @@ -0,0 +1,43 @@ +From 2f22f0a935b69f2f2a866050be5b905f9df4e4b6 Mon Sep 17 00:00:00 2001 +From: Marco Martin <notmart@gmail.com> +Date: Mon, 20 Mar 2017 16:59:25 +0100 +Subject: fix compilation with old gcc + +Summary: +gcc 4.8.5 (opensuse leap) fails building modeltest with +CMakeFiles/testHistoryModel.dir/modeltest.cpp.o: In function `ModelTest::data()': +modeltest.cpp:(.text+0x5a57): undefined reference to `bool QTest::qCompare<int, unsigned int>(int const&, unsigned int const&, char const*, char const*, char const*, int)' + +Test Plan: +builds fine now +same thing should be done to modeltest usage in kwin + +Reviewers: #plasma, davidedmundson + +Reviewed By: #plasma, davidedmundson + +Subscribers: davidedmundson, plasma-devel + +Tags: #plasma + +Differential Revision: https://phabricator.kde.org/D5083 +--- + klipper/autotests/modeltest.cpp | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/klipper/autotests/modeltest.cpp b/klipper/autotests/modeltest.cpp +index d42d95f..d9b70f9 100644 +--- a/klipper/autotests/modeltest.cpp ++++ b/klipper/autotests/modeltest.cpp +@@ -453,7 +453,7 @@ void ModelTest::data() + // Check that the alignment is one we know about + QVariant textAlignmentVariant = model->data ( model->index ( 0, 0 ), Qt::TextAlignmentRole ); + if ( textAlignmentVariant.isValid() ) { +- int alignment = textAlignmentVariant.toInt(); ++ unsigned int alignment = textAlignmentVariant.toUInt(); + QCOMPARE( alignment, ( alignment & ( Qt::AlignHorizontal_Mask | Qt::AlignVertical_Mask ) ) ); + } + +-- +cgit v0.11.2 + |