Indicate x64 support.
This commit is contained in:
parent
a1e0b85787
commit
93dfa5e074
@ -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
|
||||
|
@ -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();
|
||||
|
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user