Skip to content

Commit

Permalink
Revert "Add lots of stupid code and subclassing QApplication just to …
Browse files Browse the repository at this point in the history
…support file opening in PropellerIDE, because Mac."

This reverts commit 526e2ff.
  • Loading branch information
bweir committed Apr 24, 2016
1 parent 526e2ff commit bd37f44
Show file tree
Hide file tree
Showing 6 changed files with 1 addition and 76 deletions.
2 changes: 0 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -38,5 +38,3 @@ Makefile*
src/propelleride/propelleride
src/terminal/propterm
build/

.DS_Store
30 changes: 0 additions & 30 deletions src/propelleride/application.cpp

This file was deleted.

22 changes: 0 additions & 22 deletions src/propelleride/application.h

This file was deleted.

11 changes: 0 additions & 11 deletions src/propelleride/main.cpp
Original file line number Diff line number Diff line change
@@ -1,11 +1,4 @@
#include <QtGlobal>

#ifdef Q_OS_MAC
#include "application.h"
#else
#include <QApplication>
#endif

#include <QDebug>
#include <QMessageBox>
#include <QStyleFactory>
Expand Down Expand Up @@ -62,11 +55,7 @@ int main(int argc, char *argv[])
qInstallMessageHandler(messageHandler);
#endif

#ifdef Q_OS_MAC
Application app(argc, argv);
#else
QApplication app(argc, argv);
#endif

QCoreApplication::setOrganizationName("Parallax");
QCoreApplication::setOrganizationDomain("www.parallax.com");
Expand Down
5 changes: 0 additions & 5 deletions src/propelleride/mainwindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -45,11 +45,6 @@ MainWindow::MainWindow(QWidget *parent)
QSplitterHandle *hndl = ui.splitter->handle(1);
hndl->setEnabled(false);


#ifdef Q_OS_MAC
connect(qApp, SIGNAL(fileOpened(const QString &)), ui.editorTabs, SLOT(openFile(const QString &)));
#endif

connect(ui.editorTabs, SIGNAL(fileUpdated(int)), this, SLOT(setProject()));

// File Menu
Expand Down
7 changes: 1 addition & 6 deletions src/propelleride/propelleride.pro
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ SOURCES += \
preferences.cpp \
logging.cpp \

HEADERS += \
HEADERS += \
buildmanager.h \
clickable.h \
colorchooser.h \
Expand All @@ -52,11 +52,6 @@ HEADERS += \
templates/Singleton.h \
logging.h \

macx {
SOURCES += application.cpp
HEADERS += application.h
}

OTHER_FILES +=

FORMS += \
Expand Down

0 comments on commit bd37f44

Please sign in to comment.