Skip to content

Commit

Permalink
Port to Qt 5.0
Browse files Browse the repository at this point in the history
  • Loading branch information
macrosoft committed Jan 1, 2013
1 parent a9deecb commit c491787
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion carbox2d.pro
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
TEMPLATE = app
QT += opengl
QT += widgets opengl
HEADERS = \
world.h \
track.h \
Expand Down
6 changes: 3 additions & 3 deletions mainwindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ MainWindow::MainWindow(QWidget *parent) :
connect(world, SIGNAL(creteNewCar()), render, SLOT(createCarCallList()));
connect(world, SIGNAL(freeCallListNumber(uint)), render,
SLOT(deleteCallList(uint)));
this->setCentralWidget(render);
this->resize(800, 600);
setCentralWidget(render);
resize(800, 600);
setWindowTitle(tr("Carbox2d"));
createMenu();
speed = SPEED_NORMAL;
Expand Down Expand Up @@ -96,7 +96,7 @@ void MainWindow::setSpeed(int newSpeed) {

void MainWindow::showAbout() {
QMessageBox::about(this, tr("About carbox2d"),
tr("<h2>Carbox2d 0.2.2</h2>"
tr("<h2>Carbox2d 0.2.3</h2>"
"<p>Evolution simulator like "
"<a href='http://boxcar2d.com/'>http://boxcar2d.com/</a></p>"
"<p>Copyright &copy; 2012 Zagidulin Artyom</p>"
Expand Down
4 changes: 2 additions & 2 deletions mainwindow.h
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QtGui>
#include <QtWidgets>

#include "render.h"
#include "world.h"

class MainWindow : public QMainWindow {
Q_OBJECT
public:
explicit MainWindow(QWidget *parent = 0);
MainWindow(QWidget *parent = 0);
~MainWindow();

signals:
Expand Down

0 comments on commit c491787

Please sign in to comment.