Skip to content

Commit

Permalink
Modifying the way to get the version information
Browse files Browse the repository at this point in the history
  • Loading branch information
eightplus committed Mar 6, 2018
1 parent 6a81ecc commit d1fe5a8
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
4 changes: 4 additions & 0 deletions src/smplayer/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,10 @@ int main( int argc, char ** argv )
{
MyApplication a("kylin-video", argc, argv );
a.setQuitOnLastWindowClosed(false);

a.setOrganizationName("kylin");
a.setApplicationName("kylin-video");
a.setApplicationVersion("1.1.4");

#if QT_VERSION >= 0x040400
// Enable icons in menus
Expand Down
10 changes: 7 additions & 3 deletions src/smplayer/version.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,19 @@
*/

#include "version.h"
#include <QApplication>

#define USE_SVN_VERSIONS 0

#define VERSION "1.1.1"
//#define VERSION "1.1.2"

QString Version::printable() {
return QString(VERSION);
//return QString(VERSION);
return QString(qApp->applicationVersion());
}

QString Version::stable() {
return QString(VERSION);
//return QString(VERSION);
return QString(qApp->applicationVersion());
}

0 comments on commit d1fe5a8

Please sign in to comment.