Skip to content

Commit

Permalink
Improve installer, fix deprecations (#88)
Browse files Browse the repository at this point in the history
  • Loading branch information
alex1701c committed Feb 23, 2020
1 parent a9a2c0f commit 759eb3f
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
4 changes: 2 additions & 2 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@ if ! [ -a build ] ; then
mkdir build
fi
cd build
cmake -DCMAKE_INSTALL_PREFIX=/usr .. -Wnodev
make
cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release -Wnodev ..
make -j$(nproc)
sudo make install
7 changes: 7 additions & 0 deletions libappletdecoration/appletdecorationplugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,17 @@ void AppletDecorationPlugin::registerTypes(const char *uri)
qmlRegisterType<Decoration::Applet::ExtendedTheme>(uri, 0, 1, "PlasmaThemeExtended");
qmlRegisterType<Decoration::Applet::WindowSystem>(uri, 0, 1, "WindowSystem");

#if (QT_VERSION >= QT_VERSION_CHECK(5, 14, 0))
qmlRegisterAnonymousType<Decoration::Applet::Padding>("", 1);
qmlRegisterAnonymousType<Decoration::Applet::PreviewClient>("", 1);
qmlRegisterAnonymousType<Decoration::Applet::PreviewBridge>("", 1);
qmlRegisterAnonymousType<KDecoration2::Decoration>("", 1);
#else
qmlRegisterType<Decoration::Applet::Padding>();
qmlRegisterType<Decoration::Applet::PreviewClient>();
qmlRegisterType<Decoration::Applet::PreviewBridge>();
qmlRegisterType<KDecoration2::Decoration>();
#endif

qmlRegisterSingletonType<Decoration::Applet::Environment>(uri, 0, 1, "Environment", &Decoration::Applet::Environment::instance);
}
Expand Down
1 change: 1 addition & 0 deletions libappletdecoration/previewclient.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -387,6 +387,7 @@ void PreviewClient::setBordersTopEdge(bool enabled)
#if KDECORATION2_VERSION_MINOR >= 13
void PreviewClient::requestShowToolTip(const QString &text)
{
Q_UNUSED(text)
//qDebug() << "tooltip show requested with text:" << text;
}

Expand Down

0 comments on commit 759eb3f

Please sign in to comment.