This commit is contained in:
mrexodia 2017-06-03 14:27:23 +02:00
parent 2b90122e92
commit 2e4c088eab
No known key found for this signature in database
GPG Key ID: FC89E0AAA0C1AAD8
11 changed files with 145 additions and 134 deletions

View File

@ -617,18 +617,23 @@ void FunctionsWidget::setScrollMode()
qhelpers::setVerticalScrollMode(ui->functionsTreeView); qhelpers::setVerticalScrollMode(ui->functionsTreeView);
} }
void FunctionsWidget::show_filter() { void FunctionsWidget::show_filter()
{
ui->filterLineEdit->setVisible(true); ui->filterLineEdit->setVisible(true);
ui->closeFilterButton->setVisible(true); ui->closeFilterButton->setVisible(true);
ui->filterLineEdit->setFocus(); ui->filterLineEdit->setFocus();
} }
void FunctionsWidget::clear_filter() { void FunctionsWidget::clear_filter()
if (ui->filterLineEdit->text() == "") { {
if (ui->filterLineEdit->text() == "")
{
ui->filterLineEdit->setVisible(false); ui->filterLineEdit->setVisible(false);
ui->closeFilterButton->setVisible(false); ui->closeFilterButton->setVisible(false);
ui->functionsTreeView->setFocus(); ui->functionsTreeView->setFocus();
} else { }
else
{
ui->filterLineEdit->setText(""); ui->filterLineEdit->setText("");
} }
} }

View File

@ -1573,7 +1573,9 @@ void MemoryWidget::create_graph(QString off)
if (settings.value("dark").toBool()) if (settings.value("dark").toBool())
{ {
ui->graphWebView->page()->runJavaScript(QString("init_panel('dark');")); ui->graphWebView->page()->runJavaScript(QString("init_panel('dark');"));
} else { }
else
{
ui->graphWebView->page()->runJavaScript(QString("init_panel('light');")); ui->graphWebView->page()->runJavaScript(QString("init_panel('light');"));
} }
} }
@ -1622,7 +1624,8 @@ void MemoryWidget::on_disasTextEdit_2_cursorPositionChanged()
tc.select(QTextCursor::LineUnderCursor); tc.select(QTextCursor::LineUnderCursor);
QString lastline = tc.selectedText().trimmed(); QString lastline = tc.selectedText().trimmed();
QList<QString> words = lastline.split(" ", QString::SkipEmptyParts); QList<QString> words = lastline.split(" ", QString::SkipEmptyParts);
if (words.length() == 0) { if (words.length() == 0)
{
return; return;
} }
QString ele = words[0]; QString ele = words[0];

View File

@ -10,7 +10,9 @@
Omnibar::Omnibar(MainWindow *main, QWidget *parent) : Omnibar::Omnibar(MainWindow *main, QWidget *parent) :
QLineEdit(parent), QLineEdit(parent),
main(main), main(main),
commands({": Comments toggle", commands(
{
": Comments toggle",
": Dashboard toggle", ": Dashboard toggle",
": Exports toggle", ": Exports toggle",
": Flags toggle", ": Flags toggle",
@ -26,7 +28,8 @@ Omnibar::Omnibar(MainWindow *main, QWidget *parent) :
": Symbols toggle", ": Symbols toggle",
": Tabs up/down", ": Tabs up/down",
": Theme switch", ": Theme switch",
": Web server start/stop"}) ": Web server start/stop"
})
{ {
// QLineEdit basic features // QLineEdit basic features
this->setMinimumHeight(16); this->setMinimumHeight(16);