From 75475a7984466afd1cf77f2e4a9f722c0a859404 Mon Sep 17 00:00:00 2001 From: Tannin Date: Mon, 11 Nov 2013 23:19:54 +0100 Subject: - started qbs based project files (not functional yet) - modlist will now updated immediately after a change throw the modinfo dialog - bugfix: configurator wasn't able to save after revision 137 --- src/moapplication.cpp | 2 +- src/modlist.cpp | 3 +++ src/nexusinterface.h | 2 +- src/organizer.qbs | 23 +++++++++++++++++++++++ src/shared/shared.qbs | 16 ++++++++++++++++ 5 files changed, 44 insertions(+), 2 deletions(-) create mode 100644 src/organizer.qbs create mode 100644 src/shared/shared.qbs (limited to 'src') diff --git a/src/moapplication.cpp b/src/moapplication.cpp index ac660c6c..ba23808b 100644 --- a/src/moapplication.cpp +++ b/src/moapplication.cpp @@ -19,7 +19,7 @@ along with Mod Organizer. If not, see . #include "moapplication.h" #include "report.h" -#include "utility.h" +#include #include #include #include diff --git a/src/modlist.cpp b/src/modlist.cpp index 446946dc..eac02372 100644 --- a/src/modlist.cpp +++ b/src/modlist.cpp @@ -564,6 +564,9 @@ void ModList::modInfoChanged(ModInfo::Ptr info) if (m_ChangeInfo.state != newState) { m_ModStateChanged(info->name(), newState); } + int row = ModInfo::getIndex(info->name()); + info->testValid(); + emit dataChanged(index(row, 0), index(row, columnCount())); } else { qCritical("modInfoChanged not called after modInfoAboutToChange"); } diff --git a/src/nexusinterface.h b/src/nexusinterface.h index 03226d8e..da5fe02a 100644 --- a/src/nexusinterface.h +++ b/src/nexusinterface.h @@ -23,7 +23,7 @@ along with Mod Organizer. If not, see . #include "nxmaccessmanager.h" -#include "utility.h" +#include #include #include #include diff --git a/src/organizer.qbs b/src/organizer.qbs new file mode 100644 index 00000000..fdfb914c --- /dev/null +++ b/src/organizer.qbs @@ -0,0 +1,23 @@ +import qbs.base 1.0 + +Application { + name: 'Organizer' + + Depends { name: 'Qt.core' } + Depends { name: 'Qt.gui' } + Depends { name: 'Qt.network' } + Depends { name: 'Qt.declarative' } + Depends { name: 'UIBase' } + Depends { name: 'Shared' } + Depends { name: 'cpp' } + + cpp.defines: [] + cpp.includePaths: [ '../shared', '../archive', '../uibase', qbs.getenv("BOOSTPATH") ] + // '../bsatk', '../esptk', + + files: [ + '*.cpp', + '*.h', + '*.ui' + ] +} diff --git a/src/shared/shared.qbs b/src/shared/shared.qbs new file mode 100644 index 00000000..44b7539f --- /dev/null +++ b/src/shared/shared.qbs @@ -0,0 +1,16 @@ +import qbs.base 1.0 + +Application { + name: 'Shared' + + Depends { name: 'cpp' } + Depends { name: 'BSAToolkit' } + + cpp.defines: [] + cpp.libraryPaths: [ qbs.getenv("BOOSTPATH") ] + cpp.includePaths: [ 'bsatk', qbs.getenv("BOOSTPATH") ] + files: [ + '*.h', + '*.cpp' + ] +} -- cgit v1.3.1