Hello community, here is the log from the commit of package kwidgetsaddons for openSUSE:Factory checked in at 2019-02-14 14:28:30 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/kwidgetsaddons (Old) and /work/SRC/openSUSE:Factory/.kwidgetsaddons.new.28833 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "kwidgetsaddons" Thu Feb 14 14:28:30 2019 rev:62 rq:674271 version:5.55.0 Changes: -------- --- /work/SRC/openSUSE:Factory/kwidgetsaddons/kwidgetsaddons.changes 2019-01-21 10:22:43.153924616 +0100 +++ /work/SRC/openSUSE:Factory/.kwidgetsaddons.new.28833/kwidgetsaddons.changes 2019-02-14 14:28:32.587785437 +0100 @@ -1,0 +2,14 @@ +Sun Feb 10 22:03:18 UTC 2019 - lbeltr...@kde.org + +- Update to 5.55.0 + * New feature release + * For more details please see: + * https://www.kde.org/announcements/kde-frameworks-5.55.0.php +- Changes since 5.54.0: + * Fix zero as nullptr constant warning + * [KWidgetsAddons] Do not use light font styles for headings (3/3) + * KRatingPainter: Delete copy constructor and assignment operator + * delete copy constructor and assignment operator of some internal classes + * Remove Qt version check + +------------------------------------------------------------------- Old: ---- kwidgetsaddons-5.54.0.tar.xz New: ---- kwidgetsaddons-5.55.0.tar.xz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ kwidgetsaddons.spec ++++++ --- /var/tmp/diff_new_pack.2hVMTm/_old 2019-02-14 14:28:33.315785098 +0100 +++ /var/tmp/diff_new_pack.2hVMTm/_new 2019-02-14 14:28:33.319785097 +0100 @@ -17,14 +17,14 @@ %define lname libKF5WidgetsAddons5 -%define _tar_path 5.54 +%define _tar_path 5.55 # Full KF5 version (e.g. 5.33.0) %{!?_kf5_version: %global _kf5_version %{version}} # Last major and minor KF5 version (e.g. 5.33) %{!?_kf5_bugfix_version: %define _kf5_bugfix_version %(echo %{_kf5_version} | awk -F. '{print $1"."$2}')} %bcond_without lang Name: kwidgetsaddons -Version: 5.54.0 +Version: 5.55.0 Release: 0 Summary: Large set of desktop widgets License: LGPL-2.1-or-later ++++++ kwidgetsaddons-5.54.0.tar.xz -> kwidgetsaddons-5.55.0.tar.xz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/kwidgetsaddons-5.54.0/CMakeLists.txt new/kwidgetsaddons-5.55.0/CMakeLists.txt --- old/kwidgetsaddons-5.54.0/CMakeLists.txt 2019-01-06 21:27:41.000000000 +0100 +++ new/kwidgetsaddons-5.55.0/CMakeLists.txt 2019-02-03 01:03:51.000000000 +0100 @@ -1,10 +1,10 @@ cmake_minimum_required(VERSION 3.5) -set(KF5_VERSION "5.54.0") # handled by release scripts +set(KF5_VERSION "5.55.0") # handled by release scripts project(KWidgetsAddons VERSION ${KF5_VERSION}) include(FeatureSummary) -find_package(ECM 5.54.0 NO_MODULE) +find_package(ECM 5.55.0 NO_MODULE) set_package_properties(ECM PROPERTIES TYPE REQUIRED DESCRIPTION "Extra CMake Modules." URL "https://projects.kde.org/projects/kdesupport/extra-cmake-modules") feature_summary(WHAT REQUIRED_PACKAGES_NOT_FOUND FATAL_ON_MISSING_REQUIRED_PACKAGES) @@ -14,7 +14,7 @@ include(KDEInstallDirs) include(KDEFrameworkCompilerSettings NO_POLICY_SCOPE) include(KDECMakeSettings) -set(REQUIRED_QT_VERSION 5.9.0) +set(REQUIRED_QT_VERSION 5.10.0) find_package(Qt5 ${REQUIRED_QT_VERSION} CONFIG REQUIRED Widgets) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/kwidgetsaddons-5.54.0/po/ca/kwidgetsaddons5_qt.po new/kwidgetsaddons-5.55.0/po/ca/kwidgetsaddons5_qt.po --- old/kwidgetsaddons-5.54.0/po/ca/kwidgetsaddons5_qt.po 2019-01-06 21:27:41.000000000 +0100 +++ new/kwidgetsaddons-5.55.0/po/ca/kwidgetsaddons5_qt.po 2019-02-03 01:03:51.000000000 +0100 @@ -12,7 +12,7 @@ msgid "" msgstr "" "Project-Id-Version: kwidgetsaddons5_qt\n" -"Report-Msgid-Bugs-To: http://bugs.kde.org\n" +"Report-Msgid-Bugs-To: https://bugs.kde.org\n" "POT-Creation-Date: 2014-03-23 01:50+0000\n" "PO-Revision-Date: 2018-06-21 20:18+0100\n" "Last-Translator: Josep Ma. Ferrer <txe...@gmail.com>\n" diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/kwidgetsaddons-5.54.0/po/ca@valencia/kwidgetsaddons5_qt.po new/kwidgetsaddons-5.55.0/po/ca@valencia/kwidgetsaddons5_qt.po --- old/kwidgetsaddons-5.54.0/po/ca@valencia/kwidgetsaddons5_qt.po 2019-01-06 21:27:41.000000000 +0100 +++ new/kwidgetsaddons-5.55.0/po/ca@valencia/kwidgetsaddons5_qt.po 2019-02-03 01:03:51.000000000 +0100 @@ -12,7 +12,7 @@ msgid "" msgstr "" "Project-Id-Version: kwidgetsaddons5_qt\n" -"Report-Msgid-Bugs-To: http://bugs.kde.org\n" +"Report-Msgid-Bugs-To: https://bugs.kde.org\n" "POT-Creation-Date: 2014-03-23 01:50+0000\n" "PO-Revision-Date: 2018-06-21 20:18+0100\n" "Last-Translator: Josep Ma. Ferrer <txe...@gmail.com>\n" diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/kwidgetsaddons-5.54.0/po/id/kwidgetsaddons5_qt.po new/kwidgetsaddons-5.55.0/po/id/kwidgetsaddons5_qt.po --- old/kwidgetsaddons-5.54.0/po/id/kwidgetsaddons5_qt.po 2019-01-06 21:27:41.000000000 +0100 +++ new/kwidgetsaddons-5.55.0/po/id/kwidgetsaddons5_qt.po 2019-02-03 01:03:51.000000000 +0100 @@ -2,14 +2,14 @@ # Copyright (C) 2010 This_file_is_part_of_KDE # This file is distributed under the same license as the kdelibs4 package. # Andhika Padmawan <andhika.padma...@gmail.com>, 2010-2014. -# Wantoyo <wanto...@gmail.com>, 2017, 2018. +# Wantoyo <wanto...@gmail.com>, 2017, 2018, 2019. # msgid "" msgstr "" "Project-Id-Version: kdelibs4\n" "Report-Msgid-Bugs-To: http://bugs.kde.org\n" "POT-Creation-Date: 2014-03-23 01:50+0000\n" -"PO-Revision-Date: 2018-12-30 12:33+0700\n" +"PO-Revision-Date: 2019-01-31 20:15+0700\n" "Last-Translator: Wantoyo <wanto...@gmail.com>\n" "Language-Team: Indonesian <kde-i18n-...@kde.org>\n" "Language: id\n" @@ -17,7 +17,7 @@ "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=1; plural=0;\n" -"X-Generator: Lokalize 2.0\n" +"X-Generator: Lokalize 18.12.1\n" "X-Qt-Contexts: true\n" #. Generic sans serif font presented in font choosers. When selected, the system will choose a real font, mandated by distro settings. @@ -1043,7 +1043,7 @@ #: kcharselect.cpp:414 msgctxt "KCharSelect|" msgid "&Find..." -msgstr "&Cari..." +msgstr "&Temukan..." #: kcharselect.cpp:434 msgctxt "KCharSelect|Goes to previous character" @@ -1590,17 +1590,17 @@ #: kfontchooser.cpp:160 msgctxt "KFontChooser|@info:whatsthis" msgid "Here you can choose the font to be used." -msgstr "Di sini anda dapat memilih fon yang akan digunakan." +msgstr "Di sini anda dapat memilih font yang akan digunakan." #: kfontchooser.cpp:182 msgctxt "KFontChooser|" msgid "Requested Font" -msgstr "Fon Diminta" +msgstr "Font Diminta" #: kfontchooser.cpp:199 msgctxt "KFontChooser|@option:check" msgid "Font" -msgstr "Fon" +msgstr "Font" #: kfontchooser.cpp:203 msgctxt "KFontChooser|@info:whatsthis" @@ -1610,17 +1610,17 @@ #: kfontchooser.cpp:204 msgctxt "KFontChooser|@info:tooltip" msgid "Change font family?" -msgstr "Ubah famili fon?" +msgstr "Ubah famili font?" #: kfontchooser.cpp:208 msgctxt "KFontChooser|@label" msgid "Font:" -msgstr "Fon:" +msgstr "Font:" #: kfontchooser.cpp:215 msgctxt "KFontChooser|@option:check" msgid "Font style" -msgstr "Gaya fon" +msgstr "Gaya font" #: kfontchooser.cpp:219 msgctxt "KFontChooser|@info:whatsthis" @@ -1630,12 +1630,12 @@ #: kfontchooser.cpp:220 msgctxt "KFontChooser|@info:tooltip" msgid "Change font style?" -msgstr "Ubah gaya fon?" +msgstr "Ubah gaya font?" #: kfontchooser.cpp:224 msgctxt "KFontChooser|" msgid "Font style:" -msgstr "Gaya fon:" +msgstr "Gaya font:" #: kfontchooser.cpp:232 msgctxt "KFontChooser|@option:check" @@ -1650,7 +1650,7 @@ #: kfontchooser.cpp:237 msgctxt "KFontChooser|@info:tooltip" msgid "Change font size?" -msgstr "Ubah ukuran fon?" +msgstr "Ubah ukuran font?" #: kfontchooser.cpp:241 msgctxt "KFontChooser|@label:listbox Font size" @@ -1660,12 +1660,12 @@ #: kfontchooser.cpp:257 msgctxt "KFontChooser|@info:whatsthis" msgid "Here you can choose the font family to be used." -msgstr "Di sini anda dapat memilih famili fon yang akan digunakan." +msgstr "Di sini anda dapat memilih famili font yang akan digunakan." #: kfontchooser.cpp:281 msgctxt "KFontChooser|@info:whatsthis" msgid "Here you can choose the font style to be used." -msgstr "Di sini anda dapat memilih gaya fon yang akan digunakan." +msgstr "Di sini anda dapat memilih gaya font yang akan digunakan." #: kfontchooser.cpp:289 msgctxt "KFontChooser|QFontDatabase" @@ -1701,7 +1701,7 @@ msgctxt "KFontChooser|" msgid "Font size<br /><i>fixed</i> or <i>relative</i><br />to environment" msgstr "" -"Ukuran fon<br /><i>tetap</i> atau <i>relatif</i><br />terhadap lingkungan" +"Ukuran font<br /><i>tetap</i> atau <i>relatif</i><br />terhadap lingkungan" #: kfontchooser.cpp:316 msgctxt "KFontChooser|" @@ -1710,14 +1710,14 @@ "dynamically and adjusted to changing environment (e.g. widget dimensions, " "paper size)." msgstr "" -"Di sini anda dapat berganti antara ukuran fon tetap dan ukuran fon yang akan " -"dikalkulasi secara dinamis dan disesuaikan untuk lingkungan yang berubah " -"(misalnya, dimensi widget, ukuran kertas)." +"Di sini anda dapat berganti antara ukuran font tetap dan ukuran font yang " +"akan dikalkulasi secara dinamis dan disesuaikan untuk lingkungan yang " +"berubah (misalnya, dimensi widget, ukuran kertas)." #: kfontchooser.cpp:340 msgctxt "KFontChooser|" msgid "Here you can choose the font size to be used." -msgstr "Di sini anda dapat memilih ukuran fon yang akan digunakan." +msgstr "Di sini anda dapat memilih ukuran font yang akan digunakan." #: kfontchooser.cpp:378 msgctxt "KFontChooser|" @@ -1752,7 +1752,7 @@ #: kfontrequester.cpp:226 msgctxt "KFontRequester|" msgid "Preview of the selected font" -msgstr "Pratilik dari fon terpilih" +msgstr "Pratilik dari font terpilih" #: kfontrequester.cpp:227 msgctxt "KFontRequester|" @@ -1760,14 +1760,14 @@ "This is a preview of the selected font. You can change it by clicking the " "\"Choose...\" button." msgstr "" -"Ini adalah pratilik dari fon terpilih. Anda dapat mengubahnya dengan klik " +"Ini adalah pratilik dari font terpilih. Anda dapat mengubahnya dengan klik " "tombol \"Pilih...\"." #: kfontrequester.cpp:230 #, qt-format msgctxt "KFontRequester|" msgid "Preview of the \"%1\" font" -msgstr "Pratilik dari fon \"%1\"" +msgstr "Pratilik dari font \"%1\"" #: kfontrequester.cpp:231 #, qt-format @@ -1776,7 +1776,7 @@ "This is a preview of the \"%1\" font. You can change it by clicking the " "\"Choose...\" button." msgstr "" -"Ini adalah pratilik dari fon \"%1\". Anda dapat mengubahnya dengan klik " +"Ini adalah pratilik dari font \"%1\". Anda dapat mengubahnya dengan klik " "tombol \"Pilih...\"." #: kled.cpp:195 @@ -2209,12 +2209,12 @@ #: kstandardguiitem.cpp:200 msgctxt "KStandardGuiItem|" msgid "&Defaults" -msgstr "&Default" +msgstr "&Baku" #: kstandardguiitem.cpp:201 msgctxt "KStandardGuiItem|" msgid "Reset all items to their default values" -msgstr "Kembalikan semua item ke nilai default-nya" +msgstr "Kembalikan semua item ke nilai baku-nya" #: kstandardguiitem.cpp:208 msgctxt "KStandardGuiItem|go back" diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/kwidgetsaddons-5.54.0/po/pl/kwidgetsaddons5_qt.po new/kwidgetsaddons-5.55.0/po/pl/kwidgetsaddons5_qt.po --- old/kwidgetsaddons-5.54.0/po/pl/kwidgetsaddons5_qt.po 2019-01-06 21:27:41.000000000 +0100 +++ new/kwidgetsaddons-5.55.0/po/pl/kwidgetsaddons5_qt.po 2019-02-03 01:03:51.000000000 +0100 @@ -11,20 +11,20 @@ # Marta Rybczyńska <kde-i...@rybczynska.net>, 2007, 2008, 2009, 2010, 2011, 2012, 2013. # Michal Rudolf <mic...@rudolf.waw.pl>, 2010. # Artur Chłond <eugenewo...@o2.pl>, 2010. -# Łukasz Wojniłowicz <lukasz.wojnilow...@gmail.com>, 2011, 2012, 2013, 2014, 2015, 2016, 2017, 2018. +# Łukasz Wojniłowicz <lukasz.wojnilow...@gmail.com>, 2011, 2012, 2013, 2014, 2015, 2016, 2017, 2018, 2019. msgid "" msgstr "" "Project-Id-Version: kdelibs4\n" "Report-Msgid-Bugs-To: http://bugs.kde.org\n" "POT-Creation-Date: 2014-03-23 01:50+0000\n" -"PO-Revision-Date: 2018-07-14 07:17+0100\n" +"PO-Revision-Date: 2019-01-20 07:55+0100\n" "Last-Translator: Łukasz Wojniłowicz <lukasz.wojnilow...@gmail.com>\n" "Language-Team: Polish <kde-i18n-...@kde.org>\n" "Language: pl\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"X-Generator: Lokalize 2.0\n" +"X-Generator: Lokalize 19.03.70\n" "Plural-Forms: nplurals=3; plural=(n==1 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 " "|| n%100>=20) ? 1 : 2);\n" "X-Qt-Contexts: true\n" @@ -2042,7 +2042,7 @@ #: kstandardguiitem.cpp:113 msgctxt "KStandardGuiItem|" msgid "&Cancel" -msgstr "&Anuluj" +msgstr "Z&aniechaj" #: kstandardguiitem.cpp:118 msgctxt "KStandardGuiItem|" @@ -2079,7 +2079,7 @@ msgid "" "Pressing this button will discard all recent changes made in this dialog." msgstr "" -"Naciśnięcie tego przycisku anuluje wszystkie ostatnie zmiany w tym oknie." +"Naciśnięcie tego przycisku porzuci wszystkie ostatnie zmiany w tym oknie." #: kstandardguiitem.cpp:135 msgctxt "KStandardGuiItem|" diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/kwidgetsaddons-5.54.0/po/zh_CN/kwidgetsaddons5_qt.po new/kwidgetsaddons-5.55.0/po/zh_CN/kwidgetsaddons5_qt.po --- old/kwidgetsaddons-5.54.0/po/zh_CN/kwidgetsaddons5_qt.po 2019-01-06 21:27:41.000000000 +0100 +++ new/kwidgetsaddons-5.55.0/po/zh_CN/kwidgetsaddons5_qt.po 2019-02-03 01:03:51.000000000 +0100 @@ -14,7 +14,7 @@ msgid "" msgstr "" "Project-Id-Version: kdeorg\n" -"PO-Revision-Date: 2019-01-05 20:42\n" +"PO-Revision-Date: 2019-01-27 22:57\n" "Last-Translator: guoyunhe <i...@guoyunhe.me>\n" "Language-Team: Chinese Simplified\n" "Language: zh_CN\n" @@ -71,7 +71,7 @@ #: kassistantdialog.cpp:105 msgctxt "KAssistantDialog|go back" msgid "&Back" -msgstr "上一步(&B)" +msgstr "后退(&B)" #: kassistantdialog.cpp:107 msgctxt "KAssistantDialog|" @@ -81,7 +81,7 @@ #: kassistantdialog.cpp:112 msgctxt "KAssistantDialog|Opposite to Back" msgid "Next" -msgstr "下一步" +msgstr "前进" #: kassistantdialog.cpp:119 msgctxt "KAssistantDialog|" diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/kwidgetsaddons-5.54.0/src/kacceleratormanager_p.h new/kwidgetsaddons-5.55.0/src/kacceleratormanager_p.h --- old/kwidgetsaddons-5.54.0/src/kacceleratormanager_p.h 2019-01-06 21:27:41.000000000 +0100 +++ new/kwidgetsaddons-5.55.0/src/kacceleratormanager_p.h 2019-02-03 01:03:51.000000000 +0100 @@ -261,6 +261,9 @@ Item() : m_widget(nullptr), m_children(nullptr), m_index(-1) {} ~Item(); + Item(const Item &) = delete; + Item &operator=(const Item &) = delete; + void addChild(Item *item); QWidget *m_widget; diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/kwidgetsaddons-5.54.0/src/kcharselectdata.cpp new/kwidgetsaddons-5.55.0/src/kcharselectdata.cpp --- old/kwidgetsaddons-5.54.0/src/kcharselectdata.cpp 2019-01-06 21:27:41.000000000 +0100 +++ new/kwidgetsaddons-5.55.0/src/kcharselectdata.cpp 2019-02-03 01:03:51.000000000 +0100 @@ -64,7 +64,7 @@ { Index index = m_data->createIndex(m_dataFile); reportResult(index); - reportFinished(); + reportFinished(nullptr); } private: diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/kwidgetsaddons-5.54.0/src/kcollapsiblegroupbox.cpp new/kwidgetsaddons-5.55.0/src/kcollapsiblegroupbox.cpp --- old/kwidgetsaddons-5.54.0/src/kcollapsiblegroupbox.cpp 2019-01-06 21:27:41.000000000 +0100 +++ new/kwidgetsaddons-5.55.0/src/kcollapsiblegroupbox.cpp 2019-02-03 01:03:51.000000000 +0100 @@ -122,13 +122,9 @@ d->updateChildrenFocus(expanded); d->animation->setDirection(expanded ? QTimeLine::Forward : QTimeLine::Backward); -#if QT_VERSION >= QT_VERSION_CHECK(5, 10, 0) // QTimeLine::duration() must be > 0 const int duration = qMax(1, style()->styleHint(QStyle::SH_Widget_Animation_Duration)); d->animation->setDuration(duration); -#else - d->animation->setDuration(style()->styleHint(QStyle::SH_Widget_Animate, nullptr, this) ? 500 : 1); -#endif d->animation->start(); //when going from collapsed to expanded changing the child visibility calls an updateGeometry diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/kwidgetsaddons-5.54.0/src/kpagewidgetmodel_p.h new/kwidgetsaddons-5.55.0/src/kpagewidgetmodel_p.h --- old/kwidgetsaddons-5.54.0/src/kpagewidgetmodel_p.h 2019-01-06 21:27:41.000000000 +0100 +++ new/kwidgetsaddons-5.55.0/src/kpagewidgetmodel_p.h 2019-02-03 01:03:51.000000000 +0100 @@ -29,6 +29,9 @@ explicit PageItem(KPageWidgetItem *pageItem, PageItem *parent = nullptr); ~PageItem(); + PageItem(const PageItem &) = delete; + PageItem &operator=(const PageItem &) = delete; + void appendChild(PageItem *child); void insertChild(int row, PageItem *child); void removeChild(int row); diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/kwidgetsaddons-5.54.0/src/kratingpainter.h new/kwidgetsaddons-5.55.0/src/kratingpainter.h --- old/kwidgetsaddons-5.54.0/src/kratingpainter.h 2019-01-06 21:27:41.000000000 +0100 +++ new/kwidgetsaddons-5.55.0/src/kratingpainter.h 2019-02-03 01:03:51.000000000 +0100 @@ -61,6 +61,9 @@ */ ~KRatingPainter(); + KRatingPainter(const KRatingPainter &) = delete; + KRatingPainter &operator=(const KRatingPainter &) = delete; + /** * The maximum rating, i.e. how many stars are drawn * in total. diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/kwidgetsaddons-5.54.0/src/ktitlewidget.cpp new/kwidgetsaddons-5.55.0/src/ktitlewidget.cpp --- old/kwidgetsaddons-5.54.0/src/ktitlewidget.cpp 2019-01-06 21:27:41.000000000 +0100 +++ new/kwidgetsaddons-5.55.0/src/ktitlewidget.cpp 2019-02-03 01:03:51.000000000 +0100 @@ -213,16 +213,6 @@ if (e->type() == QEvent::PaletteChange || e->type() == QEvent::FontChange || e->type() == QEvent::ApplicationFontChange) { d->textLabel->setStyleSheet(d->textStyleSheet()); - //Qt stylesheet doesn't support lighter font-weight - QFont font(d->textLabel->font()); - if (d->level <= 4) { - font.setWeight(QFont::Light); - font.setStyleName(QStringLiteral("Light")); - } else { - font.setWeight(QFont::Normal); - font.setStyleName(QStringLiteral("Regular")); - } - d->textLabel->setFont(font); d->commentLabel->setStyleSheet(d->commentStyleSheet()); } } @@ -233,16 +223,6 @@ if (!Qt::mightBeRichText(text)) { d->textLabel->setStyleSheet(d->textStyleSheet()); - //Qt stylesheet doesn't support lighter font-weight - QFont font(d->textLabel->font()); - if (d->level <= 4) { - font.setWeight(QFont::Light); - font.setStyleName(QStringLiteral("Light")); - } else { - font.setWeight(QFont::Normal); - font.setStyleName(QStringLiteral("Regular")); - } - d->textLabel->setFont(font); } d->textLabel->setText(text); @@ -259,15 +239,6 @@ d->level = level; d->textLabel->setStyleSheet(d->textStyleSheet()); - //Qt stylesheet doesn't support lighter font-weight - QFont font(d->textLabel->font()); - if (d->level <= 4) { - font.setWeight(QFont::Light); - font.setStyleName(QStringLiteral("Light")); - } else { - font.setWeight(QFont::Normal); - font.setStyleName(QStringLiteral("Regular")); - } } int KTitleWidget::level()