Qt6 port:

* Explicitly include some missing headers
* Use 'static const char*' for XPM icon
* Skip template parameters for qMakePair
* Constructor of QFileInfo is marked as 'explicit' now
* QString::fromLatin1() also accepts a QByteArray
* QDateTime::fromTime_t() is deprecated in Qt5 and has been removed in Qt6. Use QDateTime::fromSecsSinceEpoch()
* QDateTime::toTime_t() is deprecated in Qt5 and has been removed in Qt6. Use QDateTime::toSecsSinceEpoch()
* QApplication::globalStrut() is deprecated. Don't use it any more.
* QWidget::isTopLevel() is deprecated, use QWidget::isWindow()
This commit is contained in:
wmayer
2022-11-02 15:16:41 +01:00
parent a334bc4f0a
commit ec553a9292
18 changed files with 26 additions and 29 deletions

View File

@@ -57,7 +57,7 @@ DlgEditFileIncludePropertyExternal::~DlgEditFileIncludePropertyExternal()
int DlgEditFileIncludePropertyExternal::processFile()
{
QFileInfo file = QString::fromUtf8(Prop.getValue());
QFileInfo file(QString::fromUtf8(Prop.getValue()));
assert(file.exists());
QDir tmp = QString::fromUtf8(App::Application::getUserCachePath().c_str());