Indicate x64 support.

This commit is contained in:
LoRd_MuldeR 2012-01-29 01:19:50 +01:00
parent a1e0b85787
commit 93dfa5e074
3 changed files with 9 additions and 5 deletions

View File

@ -72,7 +72,7 @@ static int x264_main(int argc, char* argv[])
qApp->setStyle(new QPlastiqueStyle()); qApp->setStyle(new QPlastiqueStyle());
//Create Main Window //Create Main Window
MainWindow *mainWin = new MainWindow; MainWindow *mainWin = new MainWindow(cpuFeatures.x64);
mainWin->show(); mainWin->show();
//Run application //Run application

View File

@ -33,7 +33,9 @@
// Constructor & Destructor // Constructor & Destructor
/////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////
MainWindow::MainWindow(void) MainWindow::MainWindow(bool x64supported)
:
m_x64supported(x64supported)
{ {
//Init the dialog, from the .ui file //Init the dialog, from the .ui file
setupUi(this); setupUi(this);
@ -46,8 +48,9 @@ MainWindow::MainWindow(void)
//Freeze minimum size //Freeze minimum size
setMinimumSize(size()); setMinimumSize(size());
//Show version //Update title
setWindowTitle(QString("%1 [%2]").arg(windowTitle(), x264_version_date().toString(Qt::ISODate))); setWindowTitle(QString("%1 [%2]").arg(windowTitle(), x264_version_date().toString(Qt::ISODate)));
if(m_x64supported) setWindowTitle(QString("%1 (x64)").arg(windowTitle()));
//Create model //Create model
m_jobList = new JobListModel(); m_jobList = new JobListModel();

View File

@ -31,7 +31,7 @@ class MainWindow: public QMainWindow, private Ui::MainWindow
Q_OBJECT Q_OBJECT
public: public:
MainWindow(); MainWindow(bool x64supported);
~MainWindow(void); ~MainWindow(void);
protected: protected:
@ -39,6 +39,7 @@ protected:
private: private:
JobListModel *m_jobList; JobListModel *m_jobList;
const bool m_x64supported;
void updateButtons(EncodeThread::JobStatus status); void updateButtons(EncodeThread::JobStatus status);