mirror of
https://github.com/rizinorg/cutter.git
synced 2024-12-19 03:16:10 +00:00
AStyle
This commit is contained in:
parent
2b90122e92
commit
2e4c088eab
@ -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("");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -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];
|
||||||
|
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user