Alphabetical includes and UICommon usages

This commit is contained in:
Jack Andersen 2019-05-23 15:35:23 -10:00
parent 1c86aedb21
commit 20862139b6
3 changed files with 5 additions and 7 deletions

View File

@ -14,12 +14,12 @@
#include <Core/GameProject/AssetNameGeneration.h>
#include <Core/GameProject/CAssetNameMap.h>
#include <QButtonGroup>
#include <QCheckBox>
#include <QFileDialog>
#include <QInputDialog>
#include <QMenu>
#include <QMessageBox>
#include <QButtonGroup>
#include <QtConcurrent/QtConcurrentRun>
CResourceBrowser::CResourceBrowser(QWidget *pParent)

View File

@ -27,13 +27,13 @@
#include <Core/Resource/Script/NGameList.h>
#include <Core/Scene/CSceneIterator.h>
#include <QButtonGroup>
#include <QClipboard>
#include <QComboBox>
#include <QFontMetrics>
#include <QMessageBox>
#include <QSettings>
#include <QToolButton>
#include <QButtonGroup>
CWorldEditor::CWorldEditor(QWidget *parent)
: INodeEditor(parent)

View File

@ -8,7 +8,6 @@
#include <QApplication>
#include <QIcon>
#include <QMessageBox>
#include <QStyleFactory>
#include <QtGlobal>
@ -48,7 +47,7 @@ public:
// Init log
bool Initialized = NLog::InitLog("primeworldeditor.log");
if (!Initialized) QMessageBox::warning(0, "Error", "Couldn't open log file. Logging will not work for this session.");
if (!Initialized) UICommon::ErrorMsg(0, "Couldn't open log file. Logging will not work for this session.");
qInstallMessageHandler(QtLogRedirect);
// Create editor resource store
@ -56,9 +55,8 @@ public:
if (!gpEditorStore->DatabasePathExists())
{
QMessageBox::critical(0, "Error", "Unable to locate PWE resources directory; "
"PWE's executable must remain as deployed.",
QMessageBox::Close);
UICommon::ErrorMsg(0, "Unable to locate PWE resources directory; "
"PWE's executable must remain as deployed.");
return 1;
}