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());
//Create Main Window
MainWindow *mainWin = new MainWindow;
MainWindow *mainWin = new MainWindow(cpuFeatures.x64);
mainWin->show();
//Run application

View 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();

View File

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