mirror of
https://github.com/overte-org/overte.git
synced 2025-04-20 04:44:11 +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 {
|
||||
font-family: Helvetica, Arial, sans-serif;
|
||||
padding-left: 10px;
|
||||
background-color: #333333;
|
||||
color: #BBBBBB;
|
||||
border-width: 0;
|
||||
|
|
|
@ -19,7 +19,7 @@
|
|||
#include <shared/AbstractLoggerInterface.h>
|
||||
|
||||
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_WIDTH = 70;
|
||||
const int INFO_CHECKBOX_WIDTH = 65;
|
||||
|
@ -89,7 +89,7 @@ LogDialog::LogDialog(QWidget* parent, AbstractLoggerInterface* logger) : BaseLog
|
|||
|
||||
_filterDropdown = new QComboBox(this);
|
||||
_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("hifi.audio");
|
||||
_filterDropdown->addItem("hifi.audioclient");
|
||||
|
@ -112,8 +112,6 @@ LogDialog::LogDialog(QWidget* parent, AbstractLoggerInterface* logger) : BaseLog
|
|||
_filterDropdown->addItem("hifi.shared");
|
||||
_filterDropdown->addItem("hifi.ui");
|
||||
_filterDropdown->addItem("qml");
|
||||
_filterDropdown->addItem("hifi.ui");
|
||||
_filterDropdown->addItem("hifi.avatars");
|
||||
|
||||
connect(_filterDropdown, SIGNAL(currentIndexChanged(int)), this, SLOT(handleFilterDropdownChanged(int)));
|
||||
}
|
||||
|
@ -166,8 +164,7 @@ void LogDialog::handleCriticalPrintBox(int state) {
|
|||
void LogDialog::handleFilterDropdownChanged(int selection) {
|
||||
if (selection != 0) {
|
||||
_filterSelection = "[" + _filterDropdown->currentText() + "]";
|
||||
}
|
||||
else {
|
||||
} else {
|
||||
_filterSelection = "";
|
||||
}
|
||||
printLogFile();
|
||||
|
|
Loading…
Reference in a new issue