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

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

@ -103,8 +103,6 @@ void MainDialog::createIcons()
QListWidgetItem *queryButton = new QListWidgetItem(mIconWidget);
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->setTextAlignment(Qt::AlignHCenter | Qt::AlignBottom);
queryButton->setFlags(Qt::ItemIsSelectable | Qt::ItemIsEnabled);

Loading…
Cancel
Save