OSDN Git Service

Indicate x64 support.
authorlordmulder <mulder2@gmx.de>
Sun, 29 Jan 2012 00:19:50 +0000 (01:19 +0100)
committerlordmulder <mulder2@gmx.de>
Sun, 29 Jan 2012 00:19:50 +0000 (01:19 +0100)
src/main.cpp
src/win_main.cpp
src/win_main.h

index 9a85b04..1b2df69 100644 (file)
@@ -72,7 +72,7 @@ static int x264_main(int argc, char* argv[])
        qApp->setStyle(new QPlastiqueStyle());
 
        //Create Main Window
-       MainWindow *mainWin = new MainWindow;
+       MainWindow *mainWin = new MainWindow(cpuFeatures.x64);
        mainWin->show();
 
        //Run application
index 2d6697e..e5c9451 100644 (file)
@@ -33,7 +33,9 @@
 // Constructor & Destructor
 ///////////////////////////////////////////////////////////////////////////////
 
-MainWindow::MainWindow(void)
+MainWindow::MainWindow(bool x64supported)
+:
+       m_x64supported(x64supported)
 {
        //Init the dialog, from the .ui file
        setupUi(this);
@@ -46,8 +48,9 @@ MainWindow::MainWindow(void)
        //Freeze minimum size
        setMinimumSize(size());
 
-       //Show version
+       //Update title
        setWindowTitle(QString("%1 [%2]").arg(windowTitle(), x264_version_date().toString(Qt::ISODate)));
+       if(m_x64supported) setWindowTitle(QString("%1 (x64)").arg(windowTitle()));
 
        //Create model
        m_jobList = new JobListModel();
index 1ce1d05..1449ccf 100644 (file)
@@ -31,7 +31,7 @@ class MainWindow: public QMainWindow, private Ui::MainWindow
        Q_OBJECT
 
 public:
-       MainWindow();
+       MainWindow(bool x64supported);
        ~MainWindow(void);
 
 protected:
@@ -39,7 +39,8 @@ protected:
 
 private:
        JobListModel *m_jobList;
-
+       const bool m_x64supported;
+       
        void updateButtons(EncodeThread::JobStatus status);
 
 private slots: