diff --git a/pokerth_game.pro b/pokerth_game.pro index cc4228c1..20fb447d 100644 --- a/pokerth_game.pro +++ b/pokerth_game.pro @@ -5,6 +5,7 @@ CODECFORSRC = UTF-8 CONFIG += qt thread embed_manifest_exe warn_on release #CONFIG += qt thread embed_manifest_exe warn_on debug +QTPLUGIN += qjpeg qgif UI_DIR = uics MOC_DIR = mocs OBJECTS_DIR = obj diff --git a/src/gui/qt/settingsdialog/settingsdialogimpl.cpp b/src/gui/qt/settingsdialog/settingsdialogimpl.cpp index dd374d16..538acc4a 100644 --- a/src/gui/qt/settingsdialog/settingsdialogimpl.cpp +++ b/src/gui/qt/settingsdialog/settingsdialogimpl.cpp @@ -284,7 +284,7 @@ void settingsDialogImpl::setFlipsidePicFileName() { QString fileName = QFileDialog::getOpenFileName(this, tr("Select your flipside picture"), QDir::homePath(), - tr("Images (*.png)")); + tr("Images (*.png *.jpg *.gif)")); if (!fileName.isEmpty()) lineEdit_OwnFlipsideFilename->setText(fileName); diff --git a/src/pokerth.cpp b/src/pokerth.cpp index 30b15736..34b267c5 100755 --- a/src/pokerth.cpp +++ b/src/pokerth.cpp @@ -36,6 +36,8 @@ #include #include +#include + #include #include @@ -57,6 +59,10 @@ #define ENABLE_LEAK_CHECK() #endif +Q_IMPORT_PLUGIN(qjpeg) +Q_IMPORT_PLUGIN(qgif) + + using namespace std; class GuiWrapper;