Commit 601934f7 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Port some deprecated methods

parent 25c418a6
...@@ -200,7 +200,7 @@ void GestureTrigger::setKDE3Gesture(const QString &gestureCode) ...@@ -200,7 +200,7 @@ void GestureTrigger::setKDE3Gesture(const QString &gestureCode)
for(int i=0; i < gestureCode.length(); i++) for(int i=0; i < gestureCode.length(); i++)
{ {
switch(gestureCode[i].toAscii()) switch(gestureCode[i].toLatin1())
{ {
case '1': case '1':
newx = 0; newx = 0;
......
...@@ -244,7 +244,7 @@ class Q_DECL_EXPORT WindowTrigger : public QObject, public Trigger ...@@ -244,7 +244,7 @@ class Q_DECL_EXPORT WindowTrigger : public QObject, public Trigger
WindowTrigger( WindowTrigger(
ActionData* data, ActionData* data,
Windowdef_list* windowslist = nullptr, Windowdef_list* windowslist = nullptr,
WindowEvents window_actions = 0 ); WindowEvents window_actions = NONE );
void setOnWindowEvents(WindowEvents events); void setOnWindowEvents(WindowEvents events);
......
...@@ -89,7 +89,7 @@ void WindowsHandler::window_changed_slot( WId window_P, unsigned int flags_P ) ...@@ -89,7 +89,7 @@ void WindowsHandler::window_changed_slot( WId window_P, unsigned int flags_P )
QString WindowsHandler::get_window_role( WId id_P ) QString WindowsHandler::get_window_role( WId id_P )
{ {
// TODO this is probably just a hack // TODO this is probably just a hack
return KWindowInfo( id_P, 0, NET::WM2WindowRole ).windowRole(); return KWindowInfo( id_P, {}, NET::WM2WindowRole ).windowRole();
} }
QString WindowsHandler::get_window_class( WId id_P ) QString WindowsHandler::get_window_class( WId id_P )
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment