Fixed the use of path.hpp, which is in a CMake component now

Also fixed some leftover lines from a wrongly modified conflict
pull/21/head
Pieter van der Kloet 14 years ago
parent 7b554897e7
commit 7747c78584

@ -10,8 +10,6 @@ set(LAUNCHER
maindialog.hpp maindialog.hpp
playpage.hpp playpage.hpp
combobox.hpp combobox.hpp
../openmw/path.cpp
) )
set(MOC_HDRS set(MOC_HDRS
@ -22,8 +20,6 @@ set(MOC_HDRS
combobox.hpp combobox.hpp
) )
source_group(apps\\launcher FILES ${ESMTOOL})
find_package(Qt4 REQUIRED) find_package(Qt4 REQUIRED)
set(QT_USE_QTGUI 1) set(QT_USE_QTGUI 1)
@ -36,6 +32,7 @@ include(${QT_USE_FILE})
add_executable(launcher add_executable(launcher
${LAUNCHER} ${LAUNCHER}
${MISC} ${MISC_HEADER} ${MISC} ${MISC_HEADER}
${FILES} ${FILES_HEADER}
${TO_UTF8} ${TO_UTF8}
${ESM} ${ESM}
${RCC_SRCS} ${RCC_SRCS}

@ -3,7 +3,7 @@
#include <QDebug> // TODO: Remove #include <QDebug> // TODO: Remove
#include <components/esm/esm_reader.hpp> #include <components/esm/esm_reader.hpp>
#include "../openmw/path.hpp" #include <components/files/path.hpp>
#include "datafilespage.hpp" #include "datafilespage.hpp"
#include "lineedit.hpp" #include "lineedit.hpp"
@ -195,7 +195,7 @@ void DataFilesPage::setupConfig()
qDebug() << "Using config file from current directory"; qDebug() << "Using config file from current directory";
mLauncherConfig = new QSettings("launcher.cfg", QSettings::IniFormat); mLauncherConfig = new QSettings("launcher.cfg", QSettings::IniFormat);
} else { } else {
QString path = QString::fromStdString(OMW::Path::getPath(OMW::Path::GLOBAL_CFG_PATH, QString path = QString::fromStdString(Files::getPath(Files::Path_ConfigGlobal,
"openmw", "openmw",
"launcher.cfg")); "launcher.cfg"));
qDebug() << "Using global config file from " << path; qDebug() << "Using global config file from " << path;

@ -103,8 +103,6 @@ void MainDialog::createIcons()
QListWidgetItem *queryButton = new QListWidgetItem(mIconWidget); QListWidgetItem *queryButton = new QListWidgetItem(mIconWidget);
queryButton->setIcon(QIcon(":/images/openmw-plugin-icon.png")); queryButton->setIcon(QIcon(":/images/openmw-plugin-icon.png"));
QListWidgetItem *queryButton = new QListWidgetItem(mIconWidget);
queryButton->setIcon(QIcon(":resources/openmw-plugin-icon.png"));
queryButton->setText(tr("Data Files")); queryButton->setText(tr("Data Files"));
queryButton->setTextAlignment(Qt::AlignHCenter | Qt::AlignBottom); queryButton->setTextAlignment(Qt::AlignHCenter | Qt::AlignBottom);
queryButton->setFlags(Qt::ItemIsSelectable | Qt::ItemIsEnabled); queryButton->setFlags(Qt::ItemIsSelectable | Qt::ItemIsEnabled);

Loading…
Cancel
Save