forked from qt-creator/qt-creator
Removed the watermark from the wizard pages
Too much Qt branding, looks cleaner without.
This commit is contained in:
@@ -41,7 +41,6 @@ FileWizardDialog::FileWizardDialog(QWidget *parent) :
|
|||||||
setWindowFlags(windowFlags() & ~Qt::WindowContextHelpButtonHint);
|
setWindowFlags(windowFlags() & ~Qt::WindowContextHelpButtonHint);
|
||||||
setOption(QWizard::NoCancelButton, false);
|
setOption(QWizard::NoCancelButton, false);
|
||||||
setOption(QWizard::NoDefaultButton, false);
|
setOption(QWizard::NoDefaultButton, false);
|
||||||
setPixmap(QWizard::WatermarkPixmap, QPixmap(QLatin1String(":/core/images/qtwatermark.png")));
|
|
||||||
addPage(m_filePage);
|
addPage(m_filePage);
|
||||||
connect(m_filePage, SIGNAL(activated()), button(QWizard::FinishButton), SLOT(animateClick()));
|
connect(m_filePage, SIGNAL(activated()), button(QWizard::FinishButton), SLOT(animateClick()));
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -534,14 +534,8 @@ QStringList BaseFileWizard::runWizard(const QString &path, QWidget *parent)
|
|||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
QPixmap BaseFileWizard::watermark()
|
|
||||||
{
|
|
||||||
return QPixmap(QLatin1String(":/core/images/qtwatermark.png"));
|
|
||||||
}
|
|
||||||
|
|
||||||
void BaseFileWizard::setupWizard(QWizard *w)
|
void BaseFileWizard::setupWizard(QWizard *w)
|
||||||
{
|
{
|
||||||
w->setPixmap(QWizard::WatermarkPixmap, watermark());
|
|
||||||
w->setOption(QWizard::NoCancelButton, false);
|
w->setOption(QWizard::NoCancelButton, false);
|
||||||
w->setOption(QWizard::NoDefaultButton, false);
|
w->setOption(QWizard::NoDefaultButton, false);
|
||||||
w->setOption(QWizard::NoBackButtonOnStartPage, true);
|
w->setOption(QWizard::NoBackButtonOnStartPage, true);
|
||||||
|
|||||||
@@ -165,9 +165,7 @@ public:
|
|||||||
// Build a file name, adding the extension unless baseName already has one
|
// Build a file name, adding the extension unless baseName already has one
|
||||||
static QString buildFileName(const QString &path, const QString &baseName, const QString &extension);
|
static QString buildFileName(const QString &path, const QString &baseName, const QString &extension);
|
||||||
|
|
||||||
// Return standard pixmap to be used as watermark
|
// Sets some standard options on a QWizard
|
||||||
static QPixmap watermark();
|
|
||||||
// Set the standard watermark on a QWizard
|
|
||||||
static void setupWizard(QWizard *);
|
static void setupWizard(QWizard *);
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
|
|||||||
@@ -32,7 +32,6 @@
|
|||||||
<file>images/pushbutton.png</file>
|
<file>images/pushbutton.png</file>
|
||||||
<file>images/pushbutton_hover.png</file>
|
<file>images/pushbutton_hover.png</file>
|
||||||
<file>images/pushbutton_pressed.png</file>
|
<file>images/pushbutton_pressed.png</file>
|
||||||
<file>images/qtwatermark.png</file>
|
|
||||||
<file>images/redo.png</file>
|
<file>images/redo.png</file>
|
||||||
<file>images/replace.png</file>
|
<file>images/replace.png</file>
|
||||||
<file>images/reset.png</file>
|
<file>images/reset.png</file>
|
||||||
|
|||||||
@@ -61,8 +61,6 @@ NewDialog::NewDialog(QWidget *parent) :
|
|||||||
m_okButton = m_ui->buttonBox->button(QDialogButtonBox::Ok);
|
m_okButton = m_ui->buttonBox->button(QDialogButtonBox::Ok);
|
||||||
m_okButton->setDefault(true);
|
m_okButton->setDefault(true);
|
||||||
|
|
||||||
m_ui->watermark->setPixmap(BaseFileWizard::watermark());
|
|
||||||
|
|
||||||
m_ui->templatesTree->header()->hide();
|
m_ui->templatesTree->header()->hide();
|
||||||
connect(m_ui->templatesTree, SIGNAL(currentItemChanged(QTreeWidgetItem*, QTreeWidgetItem*)),
|
connect(m_ui->templatesTree, SIGNAL(currentItemChanged(QTreeWidgetItem*, QTreeWidgetItem*)),
|
||||||
this, SLOT(currentItemChanged(QTreeWidgetItem*)));
|
this, SLOT(currentItemChanged(QTreeWidgetItem*)));
|
||||||
|
|||||||
@@ -13,22 +13,8 @@
|
|||||||
<property name="windowTitle">
|
<property name="windowTitle">
|
||||||
<string>New Project</string>
|
<string>New Project</string>
|
||||||
</property>
|
</property>
|
||||||
<layout class="QVBoxLayout">
|
<layout class="QVBoxLayout" name="verticalLayout">
|
||||||
<property name="spacing">
|
|
||||||
<number>6</number>
|
|
||||||
</property>
|
|
||||||
<property name="margin">
|
|
||||||
<number>9</number>
|
|
||||||
</property>
|
|
||||||
<item>
|
<item>
|
||||||
<layout class="QGridLayout">
|
|
||||||
<property name="margin">
|
|
||||||
<number>0</number>
|
|
||||||
</property>
|
|
||||||
<property name="spacing">
|
|
||||||
<number>6</number>
|
|
||||||
</property>
|
|
||||||
<item row="0" column="1">
|
|
||||||
<widget class="QTreeWidget" name="templatesTree">
|
<widget class="QTreeWidget" name="templatesTree">
|
||||||
<property name="minimumSize">
|
<property name="minimumSize">
|
||||||
<size>
|
<size>
|
||||||
@@ -43,18 +29,8 @@
|
|||||||
</column>
|
</column>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item row="1" column="1">
|
<item>
|
||||||
<widget class="QLabel" name="descLabel">
|
<widget class="QLabel" name="descLabel"/>
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item row="0" column="0">
|
|
||||||
<widget class="QLabel" name="watermark">
|
|
||||||
<property name="alignment">
|
|
||||||
<set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignTop</set>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
</layout>
|
|
||||||
</item>
|
</item>
|
||||||
<item>
|
<item>
|
||||||
<widget class="Line" name="line">
|
<widget class="Line" name="line">
|
||||||
|
|||||||
Binary file not shown.
|
Before Width: | Height: | Size: 6.3 KiB |
Reference in New Issue
Block a user