Skip to content

Commit

Permalink
Change includes in Spreadsheet to be compatible with Qt5.
Browse files Browse the repository at this point in the history
This change is Qt4/Qt5 neutral.
  • Loading branch information
f3nix authored and wwmayer committed Jan 5, 2016
1 parent 0aa944a commit db345cb
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 12 deletions.
5 changes: 5 additions & 0 deletions src/Mod/Spreadsheet/Gui/AppSpreadsheetGui.cpp
Expand Up @@ -22,7 +22,12 @@
#include "Workbench.h"
#include "ViewProviderSpreadsheet.h"
#include "SpreadsheetView.h"

#if QT_VERSION >= 0x050000
#include "qrc_Spreadsheet.cpp"
#else
#include "qrc_Spreadsheet.cxx"
#endif

// use a different name to CreateCommand()
void CreateSpreadsheetCommands(void);
Expand Down
20 changes: 10 additions & 10 deletions src/Mod/Spreadsheet/Gui/qtcolorpicker.cpp
Expand Up @@ -44,20 +44,20 @@
**
****************************************************************************/

#include <QtGui/QApplication>
#include <QtGui/QDesktopWidget>
#include <QtGui/QPainter>
#include <QtGui/QPushButton>
#include <QtGui/QColorDialog>
#include <QApplication>
#include <QDesktopWidget>
#include <QPainter>
#include <QPushButton>
#include <QColorDialog>
#include <QtCore/QMap>
#include <QtGui/QLayout>
#include <QtGui/QStyle>
#include <QtGui/QLabel>
#include <QtGui/QToolTip>
#include <QLayout>
#include <QStyle>
#include <QLabel>
#include <QToolTip>
#include <QtGui/QPixmap>
#include <QtGui/QFocusEvent>
#include <QtGui/QPaintEvent>
#include <QtGui/QGridLayout>
#include <QGridLayout>
#include <QtGui/QHideEvent>
#include <QtGui/QKeyEvent>
#include <QtGui/QShowEvent>
Expand Down
4 changes: 2 additions & 2 deletions src/Mod/Spreadsheet/Gui/qtcolorpicker.h
Expand Up @@ -46,11 +46,11 @@

#ifndef QTCOLORPICKER_H
#define QTCOLORPICKER_H
#include <QtGui/QPushButton>
#include <QPushButton>
#include <QtCore/QString>
#include <QtGui/QColor>

#include <QtGui/QLabel>
#include <QLabel>
#include <QtCore/QEvent>
#include <QtGui/QFocusEvent>

Expand Down

0 comments on commit db345cb

Please sign in to comment.