qApp->setStyle(new QPlastiqueStyle());
//Create Main Window
- MainWindow *mainWin = new MainWindow;
+ MainWindow *mainWin = new MainWindow(cpuFeatures.x64);
mainWin->show();
//Run application
// Constructor & Destructor
///////////////////////////////////////////////////////////////////////////////
-MainWindow::MainWindow(void)
+MainWindow::MainWindow(bool x64supported)
+:
+ m_x64supported(x64supported)
{
//Init the dialog, from the .ui file
setupUi(this);
//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();
Q_OBJECT
public:
- MainWindow();
+ MainWindow(bool x64supported);
~MainWindow(void);
protected:
private:
JobListModel *m_jobList;
-
+ const bool m_x64supported;
+
void updateButtons(EncodeThread::JobStatus status);
private slots: