Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed Qt5 and Linux builds #11

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ Makefile

# User-specific files
*.suo
*.user
*.user*
*.sln.docstates

# Build results
Expand All @@ -22,6 +22,7 @@ Makefile
x64/
x86/
build/
build-*/
bld/
[Bb]in/
[Oo]bj/
Expand Down Expand Up @@ -133,7 +134,7 @@ publish/
# Publish Web Output
*.[Pp]ublish.xml
*.azurePubxml
# TODO: Comment the next line if you want to checkin your web deploy settings
# TODO: Comment the next line if you want to checkin your web deploy settings
# but database connection strings (with potential passwords) will be unencrypted
*.pubxml
*.publishproj
Expand Down
4 changes: 2 additions & 2 deletions include/ZDLAboutDialog.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@
#ifndef _ZABOUTDIALOG_H_
#define _ZABOUTDIALOG_H_

#include <QtGui>
#include <QObject>
#include <QDialog>
#include "ZDLWidget.h"

class ZDLAboutDialog: public QDialog{
Expand All @@ -32,4 +32,4 @@ Q_OBJECT

};

#endif
#endif
2 changes: 1 addition & 1 deletion include/ZDLImportDialog.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
#ifndef _ZDLIMPORTDIALOG_HPP_
#define _ZDLIMPORTDIALOG_HPP_

#include <QtGui>
#include <QDialog>

class ZDLImportDialog : public QDialog {
Q_OBJECT
Expand Down
2 changes: 1 addition & 1 deletion include/ZDLInterface.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
#ifndef _ZDLINTERFACE_H_
#define _ZDLINTERFACE_H_

#include <QtGui>
#include <QVBoxLayout>
#include <QObject>
#include "ZDLWidget.h"
#include "ZDLMultiPane.h"
Expand Down
3 changes: 2 additions & 1 deletion include/ZDLListWidget.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@
#ifndef _ZLISTWIDGET_H_
#define _ZLISTWIDGET_H_

#include <QtGui>
#include <QHBoxLayout>
#include <QPushButton>
#include <QObject>
#include "ZDLWidget.h"
#include "ZDLListable.h"
Expand Down
4 changes: 3 additions & 1 deletion include/ZDLMultiPane.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,9 @@
#ifndef _MULTIPANE_H_
#define _MULTIPANE_H_

#include <QtGui>
#include <QComboBox>
#include <QLineEdit>
#include <QPushButton>
#include <QObject>
#include "ZDLWidget.h"

Expand Down
3 changes: 2 additions & 1 deletion include/ZDLNameInput.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@
#ifndef _ZNAMEINPUT_H_
#define _ZNAMEINPUT_H_

#include <QtGui>
#include <QDialog>
#include <QPushButton>
#include <QObject>
#include "ZDLNameListable.h"
#include "ZDLFileInfo.h"
Expand Down
3 changes: 2 additions & 1 deletion include/ZDLQSplitter.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@
#ifndef _ZQSPLIT_H_
#define _ZQSPLIT_H_
#include <QObject>
#include <QtGui>
#include <QSplitter>
#include <QVBoxLayout>
#include "ZDLWidget.h"


Expand Down
4 changes: 3 additions & 1 deletion include/ZDLSettingsPane.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,9 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/

#include <QtGui>
#include <QListWidget>
#include <QComboBox>
#include <QItemDelegate>
#include <QObject>
#include <QStyledItemDelegate>
#include "ZDLWidget.h"
Expand Down
2 changes: 1 addition & 1 deletion include/ZDLSettingsTab.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/

#include <QtGui>
#include <QCheckBox>
#include <QObject>
#include "ZDLWidget.h"
#include "ZDLSourcePortList.h"
Expand Down
8 changes: 8 additions & 0 deletions include/zdlcommon.h
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,14 @@
#define QFD_QT_SEP(x) x
#endif

#ifndef FALSE
#define FALSE 0
#endif

#ifndef TRUE
#define TRUE 1
#endif

extern QDebug *zdlDebug;

#if defined(ZDL_BLACKBOX)
Expand Down
5 changes: 5 additions & 0 deletions qzdl.pro
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ UI_DIR = uic
RCC_DIR = rcc

QT += core gui
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
CONFIG += release
DEFINES += _ZDL_NO_WARNINGS _ZDL_NO_WFA NOMINMAX QT_HAVE_MMX QT_HAVE_3DNOW QT_HAVE_SSE QT_HAVE_MMXEXT QT_HAVE_SSE2

Expand All @@ -39,6 +40,10 @@ static {
}
}

linux*: {
LIBS += -no-pie
}

INCLUDEPATH += \
miniz \
include \
Expand Down
2 changes: 2 additions & 0 deletions src/ZDLAboutDialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@
#include "ZDLAboutDialog.h"
#include "ZDLConfigurationManager.h"
#include <QDialogButtonBox>
#include <QVBoxLayout>
#include <QLabel>
#include "bmp_logo.xpm"

ZDLAboutDialog::ZDLAboutDialog(ZDLWidget *parent):QDialog(parent){
Expand Down
1 change: 1 addition & 0 deletions src/ZDLFileList.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/

#include <QFileDialog>
#include "ZDLFileList.h"
#include "ZDLFileListable.h"
#include "ZDLConfigurationManager.h"
Expand Down
2 changes: 1 addition & 1 deletion src/ZDLFilePane.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/

#include <QtGui>
#include <QLabel>
#include <QApplication>
#include <QListWidget>

Expand Down
1 change: 1 addition & 0 deletions src/ZDLIWadList.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/

#include <QFileDialog>
#include "zdlcommon.h"
#include "ZDLIWadList.h"
#include "ZDLNameListable.h"
Expand Down
4 changes: 4 additions & 0 deletions src/ZDLImportDialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/

#include <QVBoxLayout>
#include <QLabel>
#include <QDialogButtonBox>
#include <QPushButton>
#include "ZDLImportDialog.h"
#include "zdlcommon.h"

Expand Down
6 changes: 5 additions & 1 deletion src/ZDLInterface.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,11 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/

#include <QtGui>
#include <QLabel>
#include <QMessageBox>
#include <QMenu>
#include <QAction>
#include <QFileDialog>
#include <QApplication>
#include <QProcessEnvironment>
#include <QMainWindow>
Expand Down
5 changes: 4 additions & 1 deletion src/ZDLListWidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,10 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/

#include <QtGui>
#include <QAction>
#include <QDragEnterEvent>
#include <QDropEvent>
#include <QMessageBox>
#include <QApplication>

#include "ZDLConfigurationManager.h"
Expand Down
5 changes: 3 additions & 2 deletions src/ZDLMainWindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/

#include <QtGui>
#include <QAction>
#include <QMessageBox>
#include <QRegExp>
#include <QMainWindow>

Expand Down Expand Up @@ -598,7 +599,7 @@ QStringList ParseParams(const QString& params)
switch (wordexp(qPrintable(params), &result, 0)) {
case 0:
for (size_t i=0; i<result.we_wordc; i++)
plist<<result.we_wordv[i];
plist<<result.we_wordv[i]; // fall-through
case WRDE_NOSPACE: //If error is WRDE_NOSPACE - there is a possibilty that at least some part of wordexp_t.we_wordv was allocated
wordfree (&result);
}
Expand Down
4 changes: 3 additions & 1 deletion src/ZDLMultiPane.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,9 @@
*/


#include <QtGui>
#include <QVBoxLayout>
#include <QLabel>
#include <QFileDialog>
#include <QApplication>
#include <QComboBox>
#include "ZDLConfigurationManager.h"
Expand Down
7 changes: 6 additions & 1 deletion src/ZDLNameInput.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,12 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/

#include <QtGui>
#include <QVBoxLayout>
#include <QHBoxLayout>
#include <QLineEdit>
#include <QLabel>
#include <QFileDialog>
#include <QMessageBox>
#include "ZDLNameInput.h"
#include "ZDLConfigurationManager.h"

Expand Down
6 changes: 5 additions & 1 deletion src/ZDLSettingsPane.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,11 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/

#include <QtGui>
#include <QVBoxLayout>
#include <QHBoxLayout>
#include <QLabel>
#include <QLineEdit>
#include <QMouseEvent>
#include <QApplication>
#include <QComboBox>
#include "ZDLMapFile.h"
Expand Down
3 changes: 2 additions & 1 deletion src/ZDLSettingsTab.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/

#include <QtGui>
#include <QLineEdit>
#include <QLabel>
#include <QApplication>

#include "ZDLConfigurationManager.h"
Expand Down
3 changes: 2 additions & 1 deletion src/ZDLSourcePortList.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/


#include <QFileDialog>
#include "ZDLSourcePortList.h"
#include "ZDLNameListable.h"
#include "ZDLConfigurationManager.h"
Expand Down
2 changes: 2 additions & 0 deletions src/qzdl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,9 @@ int main( int argc, char **argv ){
QFont::insertSubstitution(".Lucida Grande UI", "Lucida Grande");
#endif

#if QT_VERSION < QT_VERSION_CHECK(5, 0, 0)
QApplication::setGraphicsSystem("native");
#endif
QApplication a( argc, argv );
qapp = &a;
ZDLConfigurationManager::setArgv(eatenArgs);
Expand Down