summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTannin <devnull@localhost>2013-11-11 23:19:54 +0100
committerTannin <devnull@localhost>2013-11-11 23:19:54 +0100
commit75475a7984466afd1cf77f2e4a9f722c0a859404 (patch)
tree77cbca3ffc277c24707c28b62081df4bdd7f2739 /src
parent315ed6e41afb8ddd753fed9c8d0163cdb7c86831 (diff)
- 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
Diffstat (limited to 'src')
-rw-r--r--src/moapplication.cpp2
-rw-r--r--src/modlist.cpp3
-rw-r--r--src/nexusinterface.h2
-rw-r--r--src/organizer.qbs23
-rw-r--r--src/shared/shared.qbs16
5 files changed, 44 insertions, 2 deletions
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 <http://www.gnu.org/licenses/>.
#include "moapplication.h"
#include "report.h"
-#include "utility.h"
+#include <utility.h>
#include <appconfig.h>
#include <QFile>
#include <QStringList>
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 <http://www.gnu.org/licenses/>.
#include "nxmaccessmanager.h"
-#include "utility.h"
+#include <utility.h>
#include <gameinfo.h>
#include <versioninfo.h>
#include <imodrepositorybridge.h>
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'
+ ]
+}