mirror of
https://github.com/overte-org/overte.git
synced 2025-08-06 19:59:28 +02:00
better dropdown
This commit is contained in:
parent
d08e97f9cc
commit
bf59697aa5
2 changed files with 3 additions and 7 deletions
|
@ -69,7 +69,6 @@ QPushButton#revealLogButton {
|
||||||
|
|
||||||
QPushButton#showAllButton {
|
QPushButton#showAllButton {
|
||||||
font-family: Helvetica, Arial, sans-serif;
|
font-family: Helvetica, Arial, sans-serif;
|
||||||
padding-left: 10px;
|
|
||||||
background-color: #333333;
|
background-color: #333333;
|
||||||
color: #BBBBBB;
|
color: #BBBBBB;
|
||||||
border-width: 0;
|
border-width: 0;
|
||||||
|
|
|
@ -19,7 +19,7 @@
|
||||||
#include <shared/AbstractLoggerInterface.h>
|
#include <shared/AbstractLoggerInterface.h>
|
||||||
|
|
||||||
const int REVEAL_BUTTON_WIDTH = 122;
|
const int REVEAL_BUTTON_WIDTH = 122;
|
||||||
const int SHOW_ALL_BUTTON_WIDTH = 100;
|
const int SHOW_ALL_BUTTON_WIDTH = 80;
|
||||||
const int DEBUG_CHECKBOX_LEFT = 25;
|
const int DEBUG_CHECKBOX_LEFT = 25;
|
||||||
const int DEBUG_CHECKBOX_WIDTH = 70;
|
const int DEBUG_CHECKBOX_WIDTH = 70;
|
||||||
const int INFO_CHECKBOX_WIDTH = 65;
|
const int INFO_CHECKBOX_WIDTH = 65;
|
||||||
|
@ -89,7 +89,7 @@ LogDialog::LogDialog(QWidget* parent, AbstractLoggerInterface* logger) : BaseLog
|
||||||
|
|
||||||
_filterDropdown = new QComboBox(this);
|
_filterDropdown = new QComboBox(this);
|
||||||
_filterDropdown->setGeometry(_leftPad, ELEMENT_MARGIN + ELEMENT_MARGIN + ELEMENT_HEIGHT, COMBOBOX_WIDTH, ELEMENT_HEIGHT);
|
_filterDropdown->setGeometry(_leftPad, ELEMENT_MARGIN + ELEMENT_MARGIN + ELEMENT_HEIGHT, COMBOBOX_WIDTH, ELEMENT_HEIGHT);
|
||||||
_filterDropdown->addItem("Select secondary filter...");
|
_filterDropdown->addItem("No secondary filter...");
|
||||||
_filterDropdown->addItem("default");
|
_filterDropdown->addItem("default");
|
||||||
_filterDropdown->addItem("hifi.audio");
|
_filterDropdown->addItem("hifi.audio");
|
||||||
_filterDropdown->addItem("hifi.audioclient");
|
_filterDropdown->addItem("hifi.audioclient");
|
||||||
|
@ -112,8 +112,6 @@ LogDialog::LogDialog(QWidget* parent, AbstractLoggerInterface* logger) : BaseLog
|
||||||
_filterDropdown->addItem("hifi.shared");
|
_filterDropdown->addItem("hifi.shared");
|
||||||
_filterDropdown->addItem("hifi.ui");
|
_filterDropdown->addItem("hifi.ui");
|
||||||
_filterDropdown->addItem("qml");
|
_filterDropdown->addItem("qml");
|
||||||
_filterDropdown->addItem("hifi.ui");
|
|
||||||
_filterDropdown->addItem("hifi.avatars");
|
|
||||||
|
|
||||||
connect(_filterDropdown, SIGNAL(currentIndexChanged(int)), this, SLOT(handleFilterDropdownChanged(int)));
|
connect(_filterDropdown, SIGNAL(currentIndexChanged(int)), this, SLOT(handleFilterDropdownChanged(int)));
|
||||||
}
|
}
|
||||||
|
@ -166,8 +164,7 @@ void LogDialog::handleCriticalPrintBox(int state) {
|
||||||
void LogDialog::handleFilterDropdownChanged(int selection) {
|
void LogDialog::handleFilterDropdownChanged(int selection) {
|
||||||
if (selection != 0) {
|
if (selection != 0) {
|
||||||
_filterSelection = "[" + _filterDropdown->currentText() + "]";
|
_filterSelection = "[" + _filterDropdown->currentText() + "]";
|
||||||
}
|
} else {
|
||||||
else {
|
|
||||||
_filterSelection = "";
|
_filterSelection = "";
|
||||||
}
|
}
|
||||||
printLogFile();
|
printLogFile();
|
||||||
|
|
Loading…
Reference in a new issue