GUI: Readd library editor

This commit is contained in:
Daniel Marjamäki 2015-09-04 20:46:26 +02:00
parent 34793ee7ce
commit f5c6561e18
3 changed files with 19 additions and 10 deletions

View File

@ -5,6 +5,7 @@ DEPENDPATH += . \
../lib ../lib
INCLUDEPATH += . \ INCLUDEPATH += . \
../lib ../lib
QT += xml
greaterThan(QT_MAJOR_VERSION, 4) { greaterThan(QT_MAJOR_VERSION, 4) {
QT += widgets # In Qt 5 widgets are in separate module QT += widgets # In Qt 5 widgets are in separate module
QT += printsupport # In Qt 5 QPrinter/QPrintDialog are in separate module QT += printsupport # In Qt 5 QPrinter/QPrintDialog are in separate module
@ -49,7 +50,10 @@ FORMS = about.ui \
resultsview.ui \ resultsview.ui \
scratchpad.ui \ scratchpad.ui \
settings.ui \ settings.ui \
stats.ui stats.ui \
librarydialog.ui \
libraryaddfunctiondialog.ui \
libraryeditargdialog.ui
TRANSLATIONS = cppcheck_de.ts \ TRANSLATIONS = cppcheck_de.ts \
cppcheck_es.ts \ cppcheck_es.ts \
@ -104,7 +108,11 @@ HEADERS += aboutdialog.h \
txtreport.h \ txtreport.h \
xmlreport.h \ xmlreport.h \
xmlreportv1.h \ xmlreportv1.h \
xmlreportv2.h xmlreportv2.h \
librarydialog.h \
cppchecklibrarydata.h \
libraryaddfunctiondialog.h \
libraryeditargdialog.h
SOURCES += aboutdialog.cpp \ SOURCES += aboutdialog.cpp \
application.cpp \ application.cpp \
@ -138,7 +146,11 @@ SOURCES += aboutdialog.cpp \
txtreport.cpp \ txtreport.cpp \
xmlreport.cpp \ xmlreport.cpp \
xmlreportv1.cpp \ xmlreportv1.cpp \
xmlreportv2.cpp xmlreportv2.cpp \
librarydialog.cpp \
cppchecklibrarydata.cpp \
libraryaddfunctiondialog.cpp \
libraryeditargdialog.cpp
win32 { win32 {
DEFINES += _CRT_SECURE_NO_WARNINGS DEFINES += _CRT_SECURE_NO_WARNINGS

View File

@ -62,7 +62,7 @@
<x>0</x> <x>0</x>
<y>0</y> <y>0</y>
<width>640</width> <width>640</width>
<height>19</height> <height>20</height>
</rect> </rect>
</property> </property>
<widget class="QMenu" name="mMenuFile"> <widget class="QMenu" name="mMenuFile">
@ -710,9 +710,6 @@
<property name="toolTip"> <property name="toolTip">
<string>Open library editor</string> <string>Open library editor</string>
</property> </property>
<property name="visible">
<bool>false</bool>
</property>
</action> </action>
</widget> </widget>
<customwidgets> <customwidgets>

View File

@ -44,7 +44,7 @@
#include "logview.h" #include "logview.h"
#include "filelist.h" #include "filelist.h"
#include "showtypes.h" #include "showtypes.h"
//#include "librarydialog.h" #include "librarydialog.h"
static const QString OnlineHelpURL("http://cppcheck.sourceforge.net/manual.html"); static const QString OnlineHelpURL("http://cppcheck.sourceforge.net/manual.html");
@ -1219,8 +1219,8 @@ void MainWindow::ShowStatistics()
void MainWindow::ShowLibraryEditor() void MainWindow::ShowLibraryEditor()
{ {
//LibraryDialog libraryDialog(this); LibraryDialog libraryDialog(this);
//libraryDialog.exec(); libraryDialog.exec();
} }
void MainWindow::Log(const QString &logline) void MainWindow::Log(const QString &logline)