repos-holder / kdecoration2-kde2

7 stars 1 forks source link

Build failure under Arch Linux #7

Open halian opened 2 months ago

halian commented 2 months ago

Obligatory “btw I use Arch”.

Building fails at the first hurdle, seemingly, viz.:

[  0%] Built target kde2_decoration_autogen_timestamp_deps
[ 20%] Automatic MOC for target kde2_decoration
[ 20%] Built target kde2_decoration_autogen
[ 40%] Building CXX object src/CMakeFiles/kde2_decoration.dir/kde2_decoration_autogen/mocs_compilation.cpp.o
In file included from /home/halian/Downloads/kdecoration2-kde2/src/kde2_decoration_autogen/EWIEGA46WW/moc_skeleton.cpp:10,
                 from /home/halian/Downloads/kdecoration2-kde2/src/kde2_decoration_autogen/mocs_compilation.cpp:2:
/home/halian/Downloads/kdecoration2-kde2/src/kde2_decoration_autogen/EWIEGA46WW/../../skeleton.h:52:10: error: conflicting return type specified for ‘virtual void Skeleton::Decoration::init()’
   52 |     void init() Q_DECL_OVERRIDE;
      |          ^~~~
In file included from /usr/include/KDecoration2/KDecoration2/Decoration:1,
                 from /home/halian/Downloads/kdecoration2-kde2/src/kde2_decoration_autogen/EWIEGA46WW/../../skeleton.h:30:
/usr/include/KDecoration2/kdecoration2/decoration.h:201:18: note: overridden function is ‘virtual bool KDecoration2::Decoration::init()’
  201 |     virtual bool init() = 0;
      |                  ^~~~
make[2]: *** [src/CMakeFiles/kde2_decoration.dir/build.make:82: src/CMakeFiles/kde2_decoration.dir/kde2_decoration_autogen/mocs_compilation.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:182: src/CMakeFiles/kde2_decoration.dir/all] Error 2
make: *** [Makefile:146: all] Error 2
karthickeyan17 commented 2 months ago

bool init() Q_DECL_OVERRIDE; Try it out )))

halian commented 2 months ago

bool init() Q_DECL_OVERRIDE; Try it out )))

[  0%] Built target kde2_decoration_autogen_timestamp_deps
[ 20%] Automatic MOC for target kde2_decoration
[ 20%] Built target kde2_decoration_autogen
[ 40%] Building CXX object src/CMakeFiles/kde2_decoration.dir/kde2_decoration_autogen/mocs_compilation.cpp.o
[ 60%] Building CXX object src/CMakeFiles/kde2_decoration.dir/skeleton.cpp.o
In file included from /usr/include/KF5/KCoreAddons/KPluginFactory:1,
                 from /home/halian/Downloads/kdecoration2-kde2/src/skeleton.cpp:34:
/home/halian/Downloads/kdecoration2-kde2/src/skeleton.cpp: In constructor ‘SkeletonDecorationFactory::SkeletonDecorationFactory()’:
/home/halian/Downloads/kdecoration2-kde2/src/skeleton.cpp:46:42: warning: ‘void KPluginFactory::registerPlugin(const QString&) [with T = Skeleton::ThemeLister; typename std::enable_if<InheritanceChecker<impl>::enabled, int>::type <anonymous> = 0]’ is deprecated: Since 5.89. Use overload without keyword instead [-Wdeprecated-declarations]
   46 |     registerPlugin<Skeleton::ThemeLister>(QStringLiteral("themes"));
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/KF5/KCoreAddons/kpluginfactory.h:760:10: note: declared here
  760 |     void registerPlugin(const QString &keyword)
      |          ^~~~~~~~~~~~~~
/home/halian/Downloads/kdecoration2-kde2/src/skeleton.cpp: In function ‘void Skeleton::drawButtonBackground(QPixmap*, const QPalette&, bool)’:
/home/halian/Downloads/kdecoration2-kde2/src/skeleton.cpp:188:34: warning: ‘QColor QColor::light(int) const’ is deprecated: Use QColor::lighter() instead [-Wdeprecated-declarations]
  188 |         gradientFill(pix, c.light(130), c.dark(130));
      |                           ~~~~~~~^~~~~
In file included from /usr/include/qt/QtGui/qimage.h:44,
                 from /usr/include/qt/QtGui/QImage:1,
                 from /usr/include/KDecoration2/kdecoration2/decorationshadow.h:10,
                 from /usr/include/KDecoration2/kdecoration2/decoration.h:8,
                 from /usr/include/KDecoration2/KDecoration2/Decoration:1,
                 from /home/halian/Downloads/kdecoration2-kde2/src/skeleton.h:30,
                 from /home/halian/Downloads/kdecoration2-kde2/src/skeleton.cpp:27:
/usr/include/qt/QtGui/qcolor.h:233:30: note: declared here
  233 |     Q_REQUIRED_RESULT QColor light(int f = 150) const noexcept;
      |                              ^~~~~
/home/halian/Downloads/kdecoration2-kde2/src/skeleton.cpp:188:47: warning: ‘QColor QColor::dark(int) const’ is deprecated: Use QColor::darker() instead [-Wdeprecated-declarations]
  188 |         gradientFill(pix, c.light(130), c.dark(130));
      |                                         ~~~~~~^~~~~
/usr/include/qt/QtGui/qcolor.h:235:30: note: declared here
  235 |     Q_REQUIRED_RESULT QColor dark(int f = 200) const noexcept;
      |                              ^~~~
/home/halian/Downloads/kdecoration2-kde2/src/skeleton.cpp: In member function ‘void Skeleton::Decoration::createPixmaps()’:
/home/halian/Downloads/kdecoration2-kde2/src/skeleton.cpp:232:31: error: request for member ‘data’ in ‘((Skeleton::Decoration*)this)->Skeleton::Decoration::KDecoration2::Decoration.KDecoration2::Decoration::client()’, which is of pointer type ‘KDecoration2::DecoratedClient*’ (maybe you meant to use ‘->’ ?)
  232 |     g = new QPalette(client().data()->color(client().data()->isActive() ? KDecoration2::ColorGroup::Active : KDecoration2::ColorGroup::Inactive, KDecoration2::ColorRole::Frame));
      |                               ^~~~
/home/halian/Downloads/kdecoration2-kde2/src/skeleton.cpp:232:54: error: request for member ‘data’ in ‘((Skeleton::Decoration*)this)->Skeleton::Decoration::KDecoration2::Decoration.KDecoration2::Decoration::client()’, which is of pointer type ‘KDecoration2::DecoratedClient*’ (maybe you meant to use ‘->’ ?)
  232 |     g = new QPalette(client().data()->color(client().data()->isActive() ? KDecoration2::ColorGroup::Active : KDecoration2::ColorGroup::Inactive, KDecoration2::ColorRole::Frame));
      |                                                      ^~~~
/home/halian/Downloads/kdecoration2-kde2/src/skeleton.cpp: In function ‘int Skeleton::getBottom(Decoration*)’:
/home/halian/Downloads/kdecoration2-kde2/src/skeleton.cpp:251:24: error: request for member ‘data’ in ‘d->Skeleton::Decoration::KDecoration2::Decoration.KDecoration2::Decoration::client()’, which is of pointer type ‘KDecoration2::DecoratedClient*’ (maybe you meant to use ‘->’ ?)
  251 |     return d->client().data()->isMaximized() ? side : bottom_;
      |                        ^~~~
/home/halian/Downloads/kdecoration2-kde2/src/skeleton.cpp: At global scope:
/home/halian/Downloads/kdecoration2-kde2/src/skeleton.cpp:307:6: error: no declaration matches ‘void Skeleton::Decoration::init()’
  307 | void Decoration::init()
      |      ^~~~~~~~~~
/home/halian/Downloads/kdecoration2-kde2/src/skeleton.h:53:10: note: candidate is: ‘virtual bool Skeleton::Decoration::init()’
   53 |     bool init() Q_DECL_OVERRIDE;
      |          ^~~~
/home/halian/Downloads/kdecoration2-kde2/src/skeleton.h:43:7: note: ‘class Skeleton::Decoration’ defined here
   43 | class Decoration : public KDecoration2::Decoration
      |       ^~~~~~~~~~
/home/halian/Downloads/kdecoration2-kde2/src/skeleton.cpp: In member function ‘void Skeleton::Decoration::createButtons()’:
/home/halian/Downloads/kdecoration2-kde2/src/skeleton.cpp:345:49: error: no match for ‘operator=’ (operand types are ‘QVector<KDecoration2::DecorationButtonType>’ and ‘QList<KDecoration2::DecorationButtonType>’)
  345 |     buttons = settings()->decorationButtonsLeft();
      |                                                 ^
In file included from /usr/include/qt/QtCore/qlist.h:48,
                 from /usr/include/qt/QtCore/qstringlist.h:41,
                 from /usr/include/qt/QtGui/qcolor.h:46:
/usr/include/qt/QtCore/qvector.h:495:13: note: candidate: ‘QVector<T>& QVector<T>::operator=(const QVector<T>&) [with T = KDecoration2::DecorationButtonType]’
  495 | QVector<T> &QVector<T>::operator=(const QVector<T> &v)
      |             ^~~~~~~~~~
/usr/include/qt/QtCore/qvector.h:495:53: note:   no known conversion for argument 1 from ‘QList<KDecoration2::DecorationButtonType>’ to ‘const QVector<KDecoration2::DecorationButtonType>&’
  495 | QVector<T> &QVector<T>::operator=(const QVector<T> &v)
      |                                   ~~~~~~~~~~~~~~~~~~^
/usr/include/qt/QtCore/qvector.h:76:17: note: candidate: ‘QVector<T>& QVector<T>::operator=(QVector<T>&&) [with T = KDecoration2::DecorationButtonType]’
   76 |     QVector<T> &operator=(QVector<T> &&other) noexcept
      |                 ^~~~~~~~
/usr/include/qt/QtCore/qvector.h:76:40: note:   no known conversion for argument 1 from ‘QList<KDecoration2::DecorationButtonType>’ to ‘QVector<KDecoration2::DecorationButtonType>&&’
   76 |     QVector<T> &operator=(QVector<T> &&other) noexcept
      |                           ~~~~~~~~~~~~~^~~~~
/usr/include/qt/QtCore/qvector.h:555:13: note: candidate: ‘QVector<T>& QVector<T>::operator=(std::initializer_list<_Tp>) [with T = KDecoration2::DecorationButtonType]’
  555 | QVector<T> &QVector<T>::operator=(std::initializer_list<T> args)
      |             ^~~~~~~~~~
/usr/include/qt/QtCore/qvector.h:555:60: note:   no known conversion for argument 1 from ‘QList<KDecoration2::DecorationButtonType>’ to ‘std::initializer_list<KDecoration2::DecorationButtonType>’
  555 | QVector<T> &QVector<T>::operator=(std::initializer_list<T> args)
      |                                   ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~
/home/halian/Downloads/kdecoration2-kde2/src/skeleton.cpp:349:50: error: no match for ‘operator=’ (operand types are ‘QVector<KDecoration2::DecorationButtonType>’ and ‘QList<KDecoration2::DecorationButtonType>’)
  349 |     buttons = settings()->decorationButtonsRight();
      |                                                  ^
/usr/include/qt/QtCore/qvector.h:495:13: note: candidate: ‘QVector<T>& QVector<T>::operator=(const QVector<T>&) [with T = KDecoration2::DecorationButtonType]’
  495 | QVector<T> &QVector<T>::operator=(const QVector<T> &v)
      |             ^~~~~~~~~~
/usr/include/qt/QtCore/qvector.h:495:53: note:   no known conversion for argument 1 from ‘QList<KDecoration2::DecorationButtonType>’ to ‘const QVector<KDecoration2::DecorationButtonType>&’
  495 | QVector<T> &QVector<T>::operator=(const QVector<T> &v)
      |                                   ~~~~~~~~~~~~~~~~~~^
/usr/include/qt/QtCore/qvector.h:76:17: note: candidate: ‘QVector<T>& QVector<T>::operator=(QVector<T>&&) [with T = KDecoration2::DecorationButtonType]’
   76 |     QVector<T> &operator=(QVector<T> &&other) noexcept
      |                 ^~~~~~~~
/usr/include/qt/QtCore/qvector.h:76:40: note:   no known conversion for argument 1 from ‘QList<KDecoration2::DecorationButtonType>’ to ‘QVector<KDecoration2::DecorationButtonType>&&’
   76 |     QVector<T> &operator=(QVector<T> &&other) noexcept
      |                           ~~~~~~~~~~~~~^~~~~
/usr/include/qt/QtCore/qvector.h:555:13: note: candidate: ‘QVector<T>& QVector<T>::operator=(std::initializer_list<_Tp>) [with T = KDecoration2::DecorationButtonType]’
  555 | QVector<T> &QVector<T>::operator=(std::initializer_list<T> args)
      |             ^~~~~~~~~~
/usr/include/qt/QtCore/qvector.h:555:60: note:   no known conversion for argument 1 from ‘QList<KDecoration2::DecorationButtonType>’ to ‘std::initializer_list<KDecoration2::DecorationButtonType>’
  555 | QVector<T> &QVector<T>::operator=(std::initializer_list<T> args)
      |                                   ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~
/home/halian/Downloads/kdecoration2-kde2/src/skeleton.cpp: In member function ‘void Skeleton::Decoration::updateButtons()’:
/home/halian/Downloads/kdecoration2-kde2/src/skeleton.cpp:378:19: error: no matching function for call to ‘QVector<QPointer<KDecoration2::DecorationButton> >::append(QList<KDecoration2::DecorationButton*>)’
  378 |     buttons.append(m_leftButtons->buttons());
      |     ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/qt/QtCore/qvector.h:778:6: note: candidate: ‘void QVector<T>::append(const T&) [with T = QPointer<KDecoration2::DecorationButton>]’
  778 | void QVector<T>::append(const T &t)
      |      ^~~~~~~~~~
/usr/include/qt/QtCore/qvector.h:778:34: note:   no known conversion for argument 1 from ‘QList<KDecoration2::DecorationButton*>’ to ‘const QPointer<KDecoration2::DecorationButton>&’
  778 | void QVector<T>::append(const T &t)
      |                         ~~~~~~~~~^
/usr/include/qt/QtCore/qvector.h:801:6: note: candidate: ‘void QVector<T>::append(T&&) [with T = QPointer<KDecoration2::DecorationButton>]’
  801 | void QVector<T>::append(T &&t)
      |      ^~~~~~~~~~
/usr/include/qt/QtCore/qvector.h:801:29: note:   no known conversion for argument 1 from ‘QList<KDecoration2::DecorationButton*>’ to ‘QPointer<KDecoration2::DecorationButton>&&’
  801 | void QVector<T>::append(T &&t)
      |                         ~~~~^
/usr/include/qt/QtCore/qvector.h:144:17: note: candidate: ‘void QVector<T>::append(const QVector<T>&) [with T = QPointer<KDecoration2::DecorationButton>]’
  144 |     inline void append(const QVector<T> &l) { *this += l; }
      |                 ^~~~~~
/usr/include/qt/QtCore/qvector.h:144:42: note:   no known conversion for argument 1 from ‘QList<KDecoration2::DecorationButton*>’ to ‘const QVector<QPointer<KDecoration2::DecorationButton> >&’
  144 |     inline void append(const QVector<T> &l) { *this += l; }
      |                        ~~~~~~~~~~~~~~~~~~^
/home/halian/Downloads/kdecoration2-kde2/src/skeleton.cpp:379:19: error: no matching function for call to ‘QVector<QPointer<KDecoration2::DecorationButton> >::append(QList<KDecoration2::DecorationButton*>)’
  379 |     buttons.append(m_rightButtons->buttons());
      |     ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/qt/QtCore/qvector.h:778:6: note: candidate: ‘void QVector<T>::append(const T&) [with T = QPointer<KDecoration2::DecorationButton>]’
  778 | void QVector<T>::append(const T &t)
      |      ^~~~~~~~~~
/usr/include/qt/QtCore/qvector.h:778:34: note:   no known conversion for argument 1 from ‘QList<KDecoration2::DecorationButton*>’ to ‘const QPointer<KDecoration2::DecorationButton>&’
  778 | void QVector<T>::append(const T &t)
      |                         ~~~~~~~~~^
/usr/include/qt/QtCore/qvector.h:801:6: note: candidate: ‘void QVector<T>::append(T&&) [with T = QPointer<KDecoration2::DecorationButton>]’
  801 | void QVector<T>::append(T &&t)
      |      ^~~~~~~~~~
/usr/include/qt/QtCore/qvector.h:801:29: note:   no known conversion for argument 1 from ‘QList<KDecoration2::DecorationButton*>’ to ‘QPointer<KDecoration2::DecorationButton>&&’
  801 | void QVector<T>::append(T &&t)
      |                         ~~~~^
/usr/include/qt/QtCore/qvector.h:144:17: note: candidate: ‘void QVector<T>::append(const QVector<T>&) [with T = QPointer<KDecoration2::DecorationButton>]’
  144 |     inline void append(const QVector<T> &l) { *this += l; }
      |                 ^~~~~~
/usr/include/qt/QtCore/qvector.h:144:42: note:   no known conversion for argument 1 from ‘QList<KDecoration2::DecorationButton*>’ to ‘const QVector<QPointer<KDecoration2::DecorationButton> >&’
  144 |     inline void append(const QVector<T> &l) { *this += l; }
      |                        ~~~~~~~~~~~~~~~~~~^
/home/halian/Downloads/kdecoration2-kde2/src/skeleton.cpp:402:53: error: request for member ‘data’ in ‘((Skeleton::Decoration*)this)->Skeleton::Decoration::KDecoration2::Decoration.KDecoration2::Decoration::client()’, which is of pointer type ‘KDecoration2::DecoratedClient*’ (maybe you meant to use ‘->’ ?)
  402 |     KDecoration2::ColorGroup colorGroup = (client().data()->isActive() ? KDecoration2::ColorGroup::Active : KDecoration2::ColorGroup::Inactive);
      |                                                     ^~~~
/home/halian/Downloads/kdecoration2-kde2/src/skeleton.cpp:405:31: error: request for member ‘data’ in ‘((Skeleton::Decoration*)this)->Skeleton::Decoration::KDecoration2::Decoration.KDecoration2::Decoration::client()’, which is of pointer type ‘KDecoration2::DecoratedClient*’ (maybe you meant to use ‘->’ ?)
  405 |     g = new QPalette(client().data()->color(colorGroup, KDecoration2::ColorRole::TitleBar));
      |                               ^~~~
/home/halian/Downloads/kdecoration2-kde2/src/skeleton.cpp:411:31: error: request for member ‘data’ in ‘((Skeleton::Decoration*)this)->Skeleton::Decoration::KDecoration2::Decoration.KDecoration2::Decoration::client()’, which is of pointer type ‘KDecoration2::DecoratedClient*’ (maybe you meant to use ‘->’ ?)
  411 |     g = new QPalette(client().data()->color(colorGroup, KDecoration2::ColorRole::Frame));
      |                               ^~~~
/home/halian/Downloads/kdecoration2-kde2/src/skeleton.cpp:424:41: error: request for member ‘data’ in ‘((Skeleton::Decoration*)this)->Skeleton::Decoration::KDecoration2::Decoration.KDecoration2::Decoration::client()’, which is of pointer type ‘KDecoration2::DecoratedClient*’ (maybe you meant to use ‘->’ ?)
  424 |             button->setVisible(client().data()->isShadeable());
      |                                         ^~~~
/home/halian/Downloads/kdecoration2-kde2/src/skeleton.cpp:425:41: error: request for member ‘data’ in ‘((Skeleton::Decoration*)this)->Skeleton::Decoration::KDecoration2::Decoration.KDecoration2::Decoration::client()’, which is of pointer type ‘KDecoration2::DecoratedClient*’ (maybe you meant to use ‘->’ ?)
  425 |             button->setBitmap( client().data()->isShaded() ? shade_on_bits : shade_off_bits );
      |                                         ^~~~
/home/halian/Downloads/kdecoration2-kde2/src/skeleton.cpp:428:41: error: request for member ‘data’ in ‘((Skeleton::Decoration*)this)->Skeleton::Decoration::KDecoration2::Decoration.KDecoration2::Decoration::client()’, which is of pointer type ‘KDecoration2::DecoratedClient*’ (maybe you meant to use ‘->’ ?)
  428 |             button->setVisible(client().data()->providesContextHelp());
      |                                         ^~~~
/home/halian/Downloads/kdecoration2-kde2/src/skeleton.cpp:432:41: error: request for member ‘data’ in ‘((Skeleton::Decoration*)this)->Skeleton::Decoration::KDecoration2::Decoration.KDecoration2::Decoration::client()’, which is of pointer type ‘KDecoration2::DecoratedClient*’ (maybe you meant to use ‘->’ ?)
  432 |             button->setVisible(client().data()->isMinimizeable());
      |                                         ^~~~
/home/halian/Downloads/kdecoration2-kde2/src/skeleton.cpp:436:41: error: request for member ‘data’ in ‘((Skeleton::Decoration*)this)->Skeleton::Decoration::KDecoration2::Decoration.KDecoration2::Decoration::client()’, which is of pointer type ‘KDecoration2::DecoratedClient*’ (maybe you meant to use ‘->’ ?)
  436 |             button->setVisible(client().data()->isMaximizeable());
      |                                         ^~~~
/home/halian/Downloads/kdecoration2-kde2/src/skeleton.cpp:437:41: error: request for member ‘data’ in ‘((Skeleton::Decoration*)this)->Skeleton::Decoration::KDecoration2::Decoration.KDecoration2::Decoration::client()’, which is of pointer type ‘KDecoration2::DecoratedClient*’ (maybe you meant to use ‘->’ ?)
  437 |             button->setBitmap( client().data()->isMaximized() ? minmax_bits : maximize_bits );
      |                                         ^~~~
/home/halian/Downloads/kdecoration2-kde2/src/skeleton.cpp:440:41: error: request for member ‘data’ in ‘((Skeleton::Decoration*)this)->Skeleton::Decoration::KDecoration2::Decoration.KDecoration2::Decoration::client()’, which is of pointer type ‘KDecoration2::DecoratedClient*’ (maybe you meant to use ‘->’ ?)
  440 |             button->setVisible(client().data()->isCloseable());
      |                                         ^~~~
/home/halian/Downloads/kdecoration2-kde2/src/skeleton.cpp:444:41: error: request for member ‘data’ in ‘((Skeleton::Decoration*)this)->Skeleton::Decoration::KDecoration2::Decoration.KDecoration2::Decoration::client()’, which is of pointer type ‘KDecoration2::DecoratedClient*’ (maybe you meant to use ‘->’ ?)
  444 |             button->setBitmap( client().data()->isKeepBelow() ? below_on_bits : below_off_bits );
      |                                         ^~~~
/home/halian/Downloads/kdecoration2-kde2/src/skeleton.cpp:447:41: error: request for member ‘data’ in ‘((Skeleton::Decoration*)this)->Skeleton::Decoration::KDecoration2::Decoration.KDecoration2::Decoration::client()’, which is of pointer type ‘KDecoration2::DecoratedClient*’ (maybe you meant to use ‘->’ ?)
  447 |             button->setBitmap( client().data()->isKeepAbove() ? above_on_bits : above_off_bits );
      |                                         ^~~~
/home/halian/Downloads/kdecoration2-kde2/src/skeleton.cpp: In member function ‘void Skeleton::Decoration::updateLayout()’:
/home/halian/Downloads/kdecoration2-kde2/src/skeleton.cpp:461:33: error: request for member ‘data’ in ‘((Skeleton::Decoration*)this)->Skeleton::Decoration::KDecoration2::Decoration.KDecoration2::Decoration::client()’, which is of pointer type ‘KDecoration2::DecoratedClient*’ (maybe you meant to use ‘->’ ?)
  461 |     bool isMaximized = client().data()->isMaximized();
      |                                 ^~~~
/home/halian/Downloads/kdecoration2-kde2/src/skeleton.cpp:504:35: error: request for member ‘data’ in ‘((Skeleton::Decoration*)this)->Skeleton::Decoration::KDecoration2::Decoration.KDecoration2::Decoration::client()’, which is of pointer type ‘KDecoration2::DecoratedClient*’ (maybe you meant to use ‘->’ ?)
  504 |                 p.setPen(client().data()->color(KDecoration2::ColorGroup::Active, KDecoration2::ColorRole::TitleBar).light(150));
      |                                   ^~~~
/home/halian/Downloads/kdecoration2-kde2/src/skeleton.cpp:507:35: error: request for member ‘data’ in ‘((Skeleton::Decoration*)this)->Skeleton::Decoration::KDecoration2::Decoration.KDecoration2::Decoration::client()’, which is of pointer type ‘KDecoration2::DecoratedClient*’ (maybe you meant to use ‘->’ ?)
  507 |                 p.setPen(client().data()->color(KDecoration2::ColorGroup::Active, KDecoration2::ColorRole::TitleBar).dark(150));
      |                                   ^~~~
/home/halian/Downloads/kdecoration2-kde2/src/skeleton.cpp: In member function ‘void Skeleton::Decoration::createShadow()’:
/home/halian/Downloads/kdecoration2-kde2/src/skeleton.cpp:539:15: error: cannot convert ‘QSharedPointer<KDecoration2::DecorationShadow>’ to ‘const std::shared_ptr<KDecoration2::DecorationShadow>&’
  539 |     setShadow(QSharedPointer<KDecoration2::DecorationShadow>(decorationShadow));
      |               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |               |
      |               QSharedPointer<KDecoration2::DecorationShadow>
/usr/include/KDecoration2/kdecoration2/decoration.h:235:61: note:   initializing argument 1 of ‘void KDecoration2::Decoration::setShadow(const std::shared_ptr<KDecoration2::DecorationShadow>&)’
  235 |     void setShadow(const std::shared_ptr<DecorationShadow> &shadow);
      |                    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~
/home/halian/Downloads/kdecoration2-kde2/src/skeleton.cpp: In member function ‘virtual void Skeleton::Decoration::paint(QPainter*, const QRect&)’:
/home/halian/Downloads/kdecoration2-kde2/src/skeleton.cpp:559:53: error: request for member ‘data’ in ‘((Skeleton::Decoration*)this)->Skeleton::Decoration::KDecoration2::Decoration.KDecoration2::Decoration::client()’, which is of pointer type ‘KDecoration2::DecoratedClient*’ (maybe you meant to use ‘->’ ?)
  559 |     KDecoration2::ColorGroup colorGroup = (client().data()->isActive() ? KDecoration2::ColorGroup::Active : KDecoration2::ColorGroup::Inactive);
      |                                                     ^~~~
/home/halian/Downloads/kdecoration2-kde2/src/skeleton.cpp:561:29: error: request for member ‘data’ in ‘((Skeleton::Decoration*)this)->Skeleton::Decoration::KDecoration2::Decoration.KDecoration2::Decoration::client()’, which is of pointer type ‘KDecoration2::DecoratedClient*’ (maybe you meant to use ‘->’ ?)
  561 |     QColor color = client().data()->color(colorGroup, KDecoration2::ColorRole::TitleBar);
      |                             ^~~~
/home/halian/Downloads/kdecoration2-kde2/src/skeleton.cpp:562:19: error: request for member ‘data’ in ‘((Skeleton::Decoration*)this)->Skeleton::Decoration::KDecoration2::Decoration.KDecoration2::Decoration::client()’, which is of pointer type ‘KDecoration2::DecoratedClient*’ (maybe you meant to use ‘->’ ?)
  562 |     if (!client().data()->isActive()) {
      |                   ^~~~
/home/halian/Downloads/kdecoration2-kde2/src/skeleton.cpp:563:26: error: request for member ‘data’ in ‘((Skeleton::Decoration*)this)->Skeleton::Decoration::KDecoration2::Decoration.KDecoration2::Decoration::client()’, which is of pointer type ‘KDecoration2::DecoratedClient*’ (maybe you meant to use ‘->’ ?)
  563 |         color = client().data()->color(QPalette::Active, QPalette::Window);
      |                          ^~~~
/home/halian/Downloads/kdecoration2-kde2/src/skeleton.cpp:565:19: error: request for member ‘data’ in ‘((Skeleton::Decoration*)this)->Skeleton::Decoration::KDecoration2::Decoration.KDecoration2::Decoration::client()’, which is of pointer type ‘KDecoration2::DecoratedClient*’ (maybe you meant to use ‘->’ ?)
  565 |     if (!client().data()->isMaximized()) {
      |                   ^~~~
/home/halian/Downloads/kdecoration2-kde2/src/skeleton.cpp:576:41: error: request for member ‘data’ in ‘((Skeleton::Decoration*)this)->Skeleton::Decoration::KDecoration2::Decoration.KDecoration2::Decoration::client()’, which is of pointer type ‘KDecoration2::DecoratedClient*’ (maybe you meant to use ‘->’ ?)
  576 |     QPalette *g = new QPalette(client().data()->color(colorGroup, KDecoration2::ColorRole::Frame));
      |                                         ^~~~
/home/halian/Downloads/kdecoration2-kde2/src/skeleton.cpp:577:42: error: request for member ‘data’ in ‘((Skeleton::Decoration*)this)->Skeleton::Decoration::KDecoration2::Decoration.KDecoration2::Decoration::client()’, which is of pointer type ‘KDecoration2::DecoratedClient*’ (maybe you meant to use ‘->’ ?)
  577 |     QPalette *g2 = new QPalette(client().data()->color(colorGroup, KDecoration2::ColorRole::TitleBar));
      |                                          ^~~~
/home/halian/Downloads/kdecoration2-kde2/src/skeleton.cpp:578:26: error: request for member ‘data’ in ‘((Skeleton::Decoration*)this)->Skeleton::Decoration::KDecoration2::Decoration.KDecoration2::Decoration::client()’, which is of pointer type ‘KDecoration2::DecoratedClient*’ (maybe you meant to use ‘->’ ?)
  578 |     QColor c2 = client().data()->color(colorGroup, KDecoration2::ColorRole::Frame);
      |                          ^~~~
/home/halian/Downloads/kdecoration2-kde2/src/skeleton.cpp:606:19: error: request for member ‘data’ in ‘((Skeleton::Decoration*)this)->Skeleton::Decoration::KDecoration2::Decoration.KDecoration2::Decoration::client()’, which is of pointer type ‘KDecoration2::DecoratedClient*’ (maybe you meant to use ‘->’ ?)
  606 |     if (!client().data()->isMaximized())
      |                   ^~~~
/home/halian/Downloads/kdecoration2-kde2/src/skeleton.cpp:611:52: error: request for member ‘data’ in ‘((Skeleton::Decoration*)this)->Skeleton::Decoration::KDecoration2::Decoration.KDecoration2::Decoration::client()’, which is of pointer type ‘KDecoration2::DecoratedClient*’ (maybe you meant to use ‘->’ ?)
  611 |                             *g, false, 1, client().data()->isActive() ?
      |                                                    ^~~~
/home/halian/Downloads/kdecoration2-kde2/src/skeleton.cpp:624:73: error: request for member ‘data’ in ‘((Skeleton::Decoration*)this)->Skeleton::Decoration::KDecoration2::Decoration.KDecoration2::Decoration::client()’, which is of pointer type ‘KDecoration2::DecoratedClient*’ (maybe you meant to use ‘->’ ?)
  624 |         QString caption = settings()->fontMetrics().elidedText(client().data()->caption(), Qt::ElideMiddle, captionRect.width());
      |                                                                         ^~~~
/home/halian/Downloads/kdecoration2-kde2/src/skeleton.cpp:627:34: error: request for member ‘data’ in ‘((Skeleton::Decoration*)this)->Skeleton::Decoration::KDecoration2::Decoration.KDecoration2::Decoration::client()’, which is of pointer type ‘KDecoration2::DecoratedClient*’ (maybe you meant to use ‘->’ ?)
  627 |         painter->setPen(client().data()->color(colorGroup, KDecoration2::ColorRole::Foreground));
      |                                  ^~~~
/home/halian/Downloads/kdecoration2-kde2/src/skeleton.cpp:632:18: error: request for member ‘data’ in ‘((Skeleton::Decoration*)this)->Skeleton::Decoration::KDecoration2::Decoration.KDecoration2::Decoration::client()’, which is of pointer type ‘KDecoration2::DecoratedClient*’ (maybe you meant to use ‘->’ ?)
  632 |     if (client().data()->isActive())
      |                  ^~~~
/home/halian/Downloads/kdecoration2-kde2/src/skeleton.cpp:635:36: warning: ‘int QFontMetrics::width(const QString&, int) const’ is deprecated: Use QFontMetrics::horizontalAdvance [-Wdeprecated-declarations]
  635 |         int captionWidth = fm.width(caption);
      |                            ~~~~~~~~^~~~~~~~~
In file included from /usr/include/qt/QtGui/QFontMetricsF:1,
                 from /usr/include/KDecoration2/kdecoration2/decorationsettings.h:11,
                 from /usr/include/KDecoration2/KDecoration2/DecorationSettings:1,
                 from /home/halian/Downloads/kdecoration2-kde2/src/skeleton.cpp:31:
/usr/include/qt/QtGui/qfontmetrics.h:106:9: note: declared here
  106 |     int width(const QString &, int len = -1) const;
      |         ^~~~~
/home/halian/Downloads/kdecoration2-kde2/src/skeleton.cpp:662:19: error: request for member ‘data’ in ‘((Skeleton::Decoration*)this)->Skeleton::Decoration::KDecoration2::Decoration.KDecoration2::Decoration::client()’, which is of pointer type ‘KDecoration2::DecoratedClient*’ (maybe you meant to use ‘->’ ?)
  662 |     if (!client().data()->isMaximized())
      |                   ^~~~
/home/halian/Downloads/kdecoration2-kde2/src/skeleton.cpp: In member function ‘virtual void Skeleton::DecorationButton::paint(QPainter*, const QRect&)’:
/home/halian/Downloads/kdecoration2-kde2/src/skeleton.cpp:737:66: error: request for member ‘data’ in ‘((Skeleton::DecorationButton*)this)->Skeleton::DecorationButton::KDecoration2::DecorationButton.KDecoration2::DecorationButton::decoration()->KDecoration2::Decoration::client()’, which is of pointer type ‘KDecoration2::DecoratedClient*’ (maybe you meant to use ‘->’ ?)
  737 |     KDecoration2::ColorGroup colorGroup = decoration()->client().data()->isActive() ? KDecoration2::ColorGroup::Active : KDecoration2::ColorGroup::Inactive;
      |                                                                  ^~~~
/home/halian/Downloads/kdecoration2-kde2/src/skeleton.cpp:739:32: error: request for member ‘data’ in ‘((Skeleton::DecorationButton*)this)->Skeleton::DecorationButton::KDecoration2::DecorationButton.KDecoration2::DecorationButton::decoration()->KDecoration2::Decoration::client()’, which is of pointer type ‘KDecoration2::DecoratedClient*’ (maybe you meant to use ‘->’ ?)
  739 |         decoration()->client().data()->icon().paint(painter, geometry().toRect());
      |                                ^~~~
/home/halian/Downloads/kdecoration2-kde2/src/skeleton.cpp:748:5: warning: this ‘else’ clause does not guard... [-Wmisleading-indentation]
  748 |     else
      |     ^~~~
/home/halian/Downloads/kdecoration2-kde2/src/skeleton.cpp:751:9: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘else’
  751 |         painter->drawPixmap( geometry().x(), geometry().y(), btnbg );
      |         ^~~~~~~
/home/halian/Downloads/kdecoration2-kde2/src/skeleton.cpp:754:55: error: request for member ‘data’ in ‘((Skeleton::DecorationButton*)this)->Skeleton::DecorationButton::KDecoration2::DecorationButton.KDecoration2::DecorationButton::decoration()->KDecoration2::Decoration::client()’, which is of pointer type ‘KDecoration2::DecoratedClient*’ (maybe you meant to use ‘->’ ?)
  754 |         bool darkDeco = qGray( decoration()->client().data()->color(
      |                                                       ^~~~
make[2]: *** [src/CMakeFiles/kde2_decoration.dir/build.make:96: src/CMakeFiles/kde2_decoration.dir/skeleton.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:182: src/CMakeFiles/kde2_decoration.dir/all] Error 2
make: *** [Makefile:146: all] Error 2
mathieujobin commented 2 months ago

bool init() Q_DECL_OVERRIDE; Try it out )))

maybe that could be made into a PR, can CI be updated to reproduce the error ?