mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-12-08 20:55:17 -05:00
Untie rbutil core logic from QtGui for cli:
- include QtCore instead of QtGui if possible - replace qApp with QCoreApplication::instance(), as qApp is only defined for QtGui - use QCoreApplication instead of QApplication for inherited static members. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16274 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
7b8f4a534d
commit
ee09cb7f0d
18 changed files with 37 additions and 36 deletions
|
|
@ -29,7 +29,7 @@ Q_IMPORT_PLUGIN(qtaccessiblewidgets)
|
|||
int main( int argc, char ** argv ) {
|
||||
QApplication app( argc, argv );
|
||||
|
||||
QString absolutePath = qApp->applicationDirPath();
|
||||
QString absolutePath = QCoreApplication::instance()->applicationDirPath();
|
||||
// portable installation:
|
||||
// check for a configuration file in the program folder.
|
||||
QSettings *user;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue