mirror of
https://github.com/overte-org/overte.git
synced 2025-08-09 21:43:03 +02:00
Layout fix (notes from Grayson)
This commit is contained in:
parent
577ff766ee
commit
06ecf03180
2 changed files with 16 additions and 9 deletions
|
@ -6,21 +6,27 @@
|
||||||
* Copyright (c) 2014 High Fidelity, Inc. All rights reserved.
|
* Copyright (c) 2014 High Fidelity, Inc. All rights reserved.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
* {
|
||||||
|
font-family: Helvetica, Arial, sans-serif;
|
||||||
|
}
|
||||||
|
|
||||||
QLabel {
|
QLabel {
|
||||||
font-size: 16px;
|
font-size: 16px;
|
||||||
color: #333333;
|
color: #333333;
|
||||||
}
|
}
|
||||||
|
|
||||||
QLabel#fileNameLabel {
|
QLabel#fileNameLabel {
|
||||||
padding: 10px;
|
margin-top: 18px;
|
||||||
|
padding: 10px 0 0 7px;
|
||||||
}
|
}
|
||||||
|
|
||||||
QPushButton {
|
QPushButton {
|
||||||
border-width: 0;
|
border-width: 0;
|
||||||
border-radius: 9px;
|
border-radius: 9px;
|
||||||
font-size: 18px;
|
font-size: 18px;
|
||||||
padding: 14px 0px;
|
padding: 16px 0px;
|
||||||
width: 107px;
|
width: 107px;
|
||||||
|
margin: 20px 6px 18px;
|
||||||
}
|
}
|
||||||
|
|
||||||
QPushButton#importButton {
|
QPushButton#importButton {
|
||||||
|
@ -37,12 +43,13 @@ QPushButton#importButton:!enabled {
|
||||||
|
|
||||||
QPushButton#cancelButton {
|
QPushButton#cancelButton {
|
||||||
color: #333333;
|
color: #333333;
|
||||||
background: #FFFFFF;
|
background-color: #FFFFFF;
|
||||||
}
|
}
|
||||||
|
|
||||||
QSidebar, QTreeView {
|
QSidebar, QTreeView {
|
||||||
border: 1px solid #E5E5E5;
|
border: 1px solid #E5E5E5;
|
||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
|
margin: 0px;
|
||||||
}
|
}
|
||||||
|
|
||||||
QTreeView {
|
QTreeView {
|
||||||
|
@ -69,7 +76,7 @@ QTreeView QHeaderView:section {
|
||||||
|
|
||||||
QSidebar::item,
|
QSidebar::item,
|
||||||
QTreeView::item {
|
QTreeView::item {
|
||||||
padding: 3px 0;
|
padding: 5px 0 4px;
|
||||||
}
|
}
|
||||||
|
|
||||||
QSidebar::item:selected,
|
QSidebar::item:selected,
|
||||||
|
|
|
@ -98,14 +98,14 @@ _cancelButton(CANCEL_BUTTON_NAME, this) {
|
||||||
setOption(QFileDialog::DontUseNativeDialog, true);
|
setOption(QFileDialog::DontUseNativeDialog, true);
|
||||||
setFileMode(QFileDialog::ExistingFile);
|
setFileMode(QFileDialog::ExistingFile);
|
||||||
setViewMode(QFileDialog::Detail);
|
setViewMode(QFileDialog::Detail);
|
||||||
|
|
||||||
|
QGridLayout* gridLayout = (QGridLayout*) layout();
|
||||||
|
gridLayout->addWidget(&_cancelButton, 2, 1, 2, 1);
|
||||||
|
gridLayout->addWidget(&_importButton, 2, 2, 2, 1);
|
||||||
|
|
||||||
setImportTypes();
|
setImportTypes();
|
||||||
setLayout();
|
setLayout();
|
||||||
|
|
||||||
QGridLayout* gridLayout = (QGridLayout*) layout();
|
|
||||||
gridLayout->addWidget(&_cancelButton, 2, 1);
|
|
||||||
gridLayout->addWidget(&_importButton, 2, 2);
|
|
||||||
|
|
||||||
connect(&_importButton, SIGNAL(pressed()), SLOT(import()));
|
connect(&_importButton, SIGNAL(pressed()), SLOT(import()));
|
||||||
connect(&_cancelButton, SIGNAL(pressed()), SLOT(close()));
|
connect(&_cancelButton, SIGNAL(pressed()), SLOT(close()));
|
||||||
connect(this, SIGNAL(currentChanged(QString)), SLOT(saveCurrentFile(QString)));
|
connect(this, SIGNAL(currentChanged(QString)), SLOT(saveCurrentFile(QString)));
|
||||||
|
|
Loading…
Reference in a new issue