Fix compilation with -DQT_NO_URL_CAST_FROM_STRING

This commit is contained in:
David Faure 2018-03-21 15:30:51 +01:00
parent f536d396f9
commit 1da0983c42
2 changed files with 1 additions and 2 deletions

View file

@ -11,7 +11,6 @@ add_definitions(
)
remove_definitions(
-DQT_NO_CAST_FROM_BYTEARRAY
-DQT_NO_URL_CAST_FROM_STRING
-DQT_NO_SIGNALS_SLOTS_KEYWORDS
-DQT_NO_CAST_FROM_ASCII
-DQT_NO_CAST_TO_ASCII

View file

@ -42,7 +42,7 @@ Trash::Trash()
};
connect(m_trashDirLister, static_cast<void(KDirLister::*)()>(&KDirLister::completed), this, trashDirContentChanged);
connect(m_trashDirLister, &KDirLister::itemsDeleted, this, trashDirContentChanged);
m_trashDirLister->openUrl(QStringLiteral("trash:/"));
m_trashDirLister->openUrl(QUrl(QStringLiteral("trash:/")));
}
Trash::~Trash()