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());
|
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
|
||||||
|
@ -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();
|
||||||
|
@ -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,7 +39,8 @@ protected:
|
|||||||
|
|
||||||
private:
|
private:
|
||||||
JobListModel *m_jobList;
|
JobListModel *m_jobList;
|
||||||
|
const bool m_x64supported;
|
||||||
|
|
||||||
void updateButtons(EncodeThread::JobStatus status);
|
void updateButtons(EncodeThread::JobStatus status);
|
||||||
|
|
||||||
private slots:
|
private slots:
|
||||||
|
Loading…
Reference in New Issue
Block a user