Commit 4d7d9361 authored by Luigi Toscano's avatar Luigi Toscano

Complete the port from KDELibs4Support

- remove KDELibs4Support references, explicitely search and find
  the required Frameworks modules;
- reorder and clean few headers;
- remove the obsolete members of QGraphicsItem.
parent b5e4a456
......@@ -16,7 +16,6 @@ find_package(KF5 ${KF5_MIN_VERSION} REQUIRED COMPONENTS
DBusAddons
DocTools
I18n
KDELibs4Support
XmlGui
)
......@@ -59,9 +58,10 @@ add_executable(kspaceduel ${kspaceduel_SRCS})
target_link_libraries(kspaceduel
Qt5::Svg
KF5::Completion
KF5::Crash
KF5::DBusAddons
KF5::KDELibs4Support
KF5::XmlGui
KF5KDEGames
)
......
......@@ -16,18 +16,17 @@
*/
#include "dialogs.h"
#include "options.h"
#include "ui_general.h"
#include <KComboBox>
#include <KLocalizedString>
#include <QGridLayout>
#include <QLCDNumber>
#include <QSlider>
#include <kcombobox.h>
#include <KLocalizedString>
#include <QTabWidget>
#include "options.h"
#include "ui_general.h"
class General : public QWidget, public Ui::General
{
public:
......
......@@ -16,12 +16,12 @@
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
#include <kapplication.h>
#include <KAboutData>
#include <KCrash>
#include <KDBusService>
#include <KLocalizedString>
#include <QApplication>
#include <QCommandLineParser>
#include "version.h"
......
......@@ -18,33 +18,27 @@
*/
#include "mainview.h"
#include "ai.h"
#include "options.h"
#include <math.h>
#include <KActionCollection>
#include <KConfigGroup>
#include <KLocalizedString>
#include <KSharedConfig>
#include <KToggleAction>
#include <QAbstractEventDispatcher>
#include <QBrush>
#include <QFontDatabase>
#include <QGraphicsSimpleTextItem>
#include <QKeyEvent>
#include <QKeySequence>
#include <QResizeEvent>
#include <QTimerEvent>
#include <QAction>
#include <kactioncollection.h>
#include <kglobalsettings.h>
#include <KLocalizedString>
#include <ktoggleaction.h>
#include <kconfiggroup.h>
#include <QSvgRenderer>
#include <KGlobal>
#include <QKeySequence>
#include <QFontDatabase>
#include <QStandardPaths>
#include <KSharedConfig>
#include "ai.h"
#include "options.h"
#include <QTimerEvent>
#include <math.h>
KToggleAction *MyMainView::pauseAction = 0;
......
......@@ -22,6 +22,7 @@
#include <math.h>
#include <QGraphicsScene>
#include <QTransform>
#include "mathroutines.h"
......@@ -61,9 +62,9 @@ void ShipSprite::setRotation(double r)
if(rotation>=2*M_PI)
rotation-=(int)(rotation/(2*M_PI))*2*M_PI;
translate(center().x(),center().y());
rotate(-(rotation-angle)*57.3);
translate(-center().x(),-center().y());
setTransform(QTransform::fromTranslate(center().x(),center().y()), true);
setTransform(QTransform().rotate(-(rotation-angle)*57.3), true);
setTransform(QTransform::fromTranslate(-center().x(),-center().y()), true);
angle = rotation;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment