diff options
| author | isanae <14251494+isanae@users.noreply.github.com> | 2020-11-07 16:16:47 -0500 |
|---|---|---|
| committer | isanae <14251494+isanae@users.noreply.github.com> | 2020-11-07 20:16:26 -0500 |
| commit | 90ea45328d72f9664ace3cfbdce700dbe7a1d016 (patch) | |
| tree | 125343bdc83e5322c82b5fc92fbfd103181acf92 /src/moapplication.h | |
| parent | 6ca1ebc349528d5f6fc9194c590a17ecbe9fa444 (diff) | |
moved splash stuff to MOSplash
comments
Diffstat (limited to 'src/moapplication.h')
| -rw-r--r-- | src/moapplication.h | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/src/moapplication.h b/src/moapplication.h index c67c4622..0ee04492 100644 --- a/src/moapplication.h +++ b/src/moapplication.h @@ -23,6 +23,8 @@ along with Mod Organizer. If not, see <http://www.gnu.org/licenses/>. #include <QApplication>
#include <QFileSystemWatcher>
+class Settings;
+namespace MOBase { class IPluginGame; }
class MOApplication : public QApplication
{
@@ -46,4 +48,21 @@ private: };
+class MOSplash
+{
+public:
+ MOSplash(
+ const Settings& settings, const QString& dataPath,
+ const MOBase::IPluginGame* game);
+
+ void close();
+
+private:
+ std::unique_ptr<QSplashScreen> ss_;
+
+ QString getSplashPath(
+ const Settings& settings, const QString& dataPath,
+ const MOBase::IPluginGame* game) const;
+};
+
#endif // MOAPPLICATION_H
|
