Cleaned tabs from code. The ones in mainwindow.cpp are mine. The rest come from other contributors.

This commit is contained in:
Kjell Kernen
2014-02-26 15:23:42 +01:00
parent d465ee80a2
commit d57697460b
8 changed files with 23 additions and 23 deletions
+3 -3
View File
@@ -398,13 +398,13 @@ IF( APPLE )
ADD_CUSTOM_TARGET( addframeworks ALL ADD_CUSTOM_TARGET( addframeworks ALL
COMMAND mkdir -p companion.app/Contents/Frameworks COMMAND mkdir -p companion.app/Contents/Frameworks
COMMAND mkdir -p companion.app/Contents/Resources COMMAND mkdir -p companion.app/Contents/Resources
COMMAND mkdir -p companion.app/Contents/translations COMMAND mkdir -p companion.app/Contents/translations
COMMAND rsync ${PROJECT_SOURCE_DIR}/images/${MACOSX_BUNDLE_ICON_FILE} companion.app/Contents/Resources/${MACOSX_BUNDLE_ICON_FILE} # Copy the icon files COMMAND rsync ${PROJECT_SOURCE_DIR}/images/${MACOSX_BUNDLE_ICON_FILE} companion.app/Contents/Resources/${MACOSX_BUNDLE_ICON_FILE} # Copy the icon files
COMMAND rsync ${PROJECT_SOURCE_DIR}/../targets/mac/lib* companion.app/Contents/Frameworks COMMAND rsync ${PROJECT_SOURCE_DIR}/../targets/mac/lib* companion.app/Contents/Frameworks
#COMMAND rsync ${PROJECT_SOURCE_DIR}/../targets/mac/libcrypto.1.0.0.dylib companion.app/Contents/Frameworks #COMMAND rsync ${PROJECT_SOURCE_DIR}/../targets/mac/libcrypto.1.0.0.dylib companion.app/Contents/Frameworks
COMMAND rsync -r --exclude=.svn ${PROJECT_SOURCE_DIR}/../targets/mac/qt_menu.nib companion.app/Contents/Resources/ COMMAND rsync -r --exclude=.svn ${PROJECT_SOURCE_DIR}/../targets/mac/qt_menu.nib companion.app/Contents/Resources/
COMMAND rsync ${PROJECT_BINARY_DIR}/*.qm companion.app/Contents/translations COMMAND rsync ${PROJECT_BINARY_DIR}/*.qm companion.app/Contents/translations
COMMAND ${QT_BINARY_DIR}/macdeployqt companion.app COMMAND ${QT_BINARY_DIR}/macdeployqt companion.app
WORKING_DIRECTORY ${WORK_DIR} WORKING_DIRECTORY ${WORK_DIR}
DEPENDS ${PROJECT_NAME} ) DEPENDS ${PROJECT_NAME} )
+1 -1
View File
@@ -166,7 +166,7 @@ class Profile: protected CompStoreObj
void vBatWarn (const int); void vBatWarn (const int);
Profile(); Profile();
Profile& operator=(const Profile&); Profile& operator=(const Profile&);
void remove(); void remove();
bool existsOnDisk(); bool existsOnDisk();
void init(int newIndex); void init(int newIndex);
+1 -1
View File
@@ -52,7 +52,7 @@ FlashInterface::FlashInterface(QString fileName)
char * bin_flash = (char *)malloc(MAX_FSIZE); char * bin_flash = (char *)malloc(MAX_FSIZE);
flash_size = file.read(bin_flash, MAX_FSIZE); flash_size = file.read(bin_flash, MAX_FSIZE);
flash = QByteArray(bin_flash, flash_size); flash = QByteArray(bin_flash, flash_size);
free(bin_flash); free(bin_flash);
} }
else { else {
flash = QByteArray(temp, flash_size); flash = QByteArray(temp, flash_size);
+1 -1
View File
@@ -92,5 +92,5 @@ private:
protected: protected:
bool isValidFlag; bool isValidFlag;
}; };
#endif /* FLASHINTERFACE_H */ #endif /* FLASHINTERFACE_H */
+11 -11
View File
@@ -1538,17 +1538,17 @@ MdiChild *MainWindow::createMdiChild()
QAction * MainWindow::addAct(QString icon, QString sName, QString lName, QKeySequence::StandardKey shortcut, const char *slot) QAction * MainWindow::addAct(QString icon, QString sName, QString lName, QKeySequence::StandardKey shortcut, const char *slot)
{ {
QAction * newAction = new QAction( this ); QAction * newAction = new QAction( this );
if (!icon.isEmpty()) if (!icon.isEmpty())
newAction->setIcon(CompanionIcon(icon)); newAction->setIcon(CompanionIcon(icon));
if (!sName.isEmpty()) if (!sName.isEmpty())
newAction->setText(sName); newAction->setText(sName);
if (!lName.isEmpty()) if (!lName.isEmpty())
newAction->setStatusTip(lName); newAction->setStatusTip(lName);
if (shortcut != 0) if (shortcut != 0)
newAction->setShortcuts(shortcut); newAction->setShortcuts(shortcut);
connect(newAction, SIGNAL(triggered()), this, slot); connect(newAction, SIGNAL(triggered()), this, slot);
return newAction; return newAction;
} }
QAction * MainWindow::addAct(QString icon, QString sName, QString lName, const char *slot) QAction * MainWindow::addAct(QString icon, QString sName, QString lName, const char *slot)
@@ -1799,7 +1799,7 @@ void MainWindow::createToolBars()
recentToolButton->setMenu(createRecentFileMenu()); recentToolButton->setMenu(createRecentFileMenu());
recentToolButton->setIcon(CompanionIcon("recentdocument.png")); recentToolButton->setIcon(CompanionIcon("recentdocument.png"));
recentToolButton->setToolTip(tr("Recent Models+Settings")); recentToolButton->setToolTip(tr("Recent Models+Settings"));
recentToolButton->setStatusTip(tr("Show recent Models+Settings documents")); recentToolButton->setStatusTip(tr("Show recent Models+Settings documents"));
fileToolBar->addWidget(recentToolButton); fileToolBar->addWidget(recentToolButton);
fileToolBar->addAction(saveAct); fileToolBar->addAction(saveAct);
@@ -1814,7 +1814,7 @@ void MainWindow::createToolBars()
profileButton->setMenu(createProfilesMenu()); profileButton->setMenu(createProfilesMenu());
profileButton->setIcon(CompanionIcon("profiles.png")); profileButton->setIcon(CompanionIcon("profiles.png"));
profileButton->setToolTip(tr("Radio Settings Profile")); profileButton->setToolTip(tr("Radio Settings Profile"));
profileButton->setStatusTip(tr("Show a selection list of radio settings profiles")); profileButton->setStatusTip(tr("Show a selection list of radio settings profiles"));
fileToolBar->addWidget(profileButton); fileToolBar->addWidget(profileButton);
fileToolBar->addAction(editSplashAct); fileToolBar->addAction(editSplashAct);
+2 -2
View File
@@ -14,7 +14,7 @@
* *
*/ */
#ifndef SPLASHLABEL_H #ifndef SPLASHLABEL_H
#define SPLASHLABEL_H #define SPLASHLABEL_H
#include <QLabel> #include <QLabel>
#include <QWidget> #include <QWidget>
@@ -77,5 +77,5 @@ signals:
private: private:
int index; int index;
}; };
#endif /* SPLASHLABEL_H */ #endif /* SPLASHLABEL_H */
+2 -2
View File
@@ -1,8 +1,8 @@
#ifndef WARNINGS_H #ifndef WARNINGS_H
#define WARNINGS_H #define WARNINGS_H
#define WARNING_LEVEL 0 #define WARNING_LEVEL 0
#define WARNING_ID 6 #define WARNING_ID 6
#define WARNING QObject::tr("Thanks all for the donations, kind messages, nice ideas, constructive proposals etc. for the next OpenTX/Companion funding model.\n\nWe are really appreciative for that!\n\nThe OpenTX/Companion Team.") #define WARNING QObject::tr("Thanks all for the donations, kind messages, nice ideas, constructive proposals etc. for the next OpenTX/Companion funding model.\n\nWe are really appreciative for that!\n\nThe OpenTX/Companion Team.")
#endif /* WARNINGS_H */ #endif /* WARNINGS_H */