mirror of
https://github.com/rizinorg/cutter.git
synced 2025-02-22 06:33:46 +00:00
Minor fixes to function-widget's tooltip (#836)
This commit is contained in:
parent
507771d255
commit
25b4301906
@ -254,7 +254,7 @@ QVariant FunctionModel::data(const QModelIndex &index, int role) const
|
|||||||
}
|
}
|
||||||
QString toolTipContent = QString("<html><div style=\"font-family: %1; font-size: %2pt; white-space: nowrap;\">")
|
QString toolTipContent = QString("<html><div style=\"font-family: %1; font-size: %2pt; white-space: nowrap;\">")
|
||||||
.arg(fnt.family())
|
.arg(fnt.family())
|
||||||
.arg(qMax(6, fnt.pointSize() - 1)) // slightly decrease font size, to keep more text in the same
|
.arg(qMax(6, fnt.pointSize() - 1)) // slightly decrease font size, to keep more text in the same box
|
||||||
+ tr("<div><strong>Summary</strong>:<br>")
|
+ tr("<div><strong>Summary</strong>:<br>")
|
||||||
+ tr("Size: %1, Cyclomatic complexity: %2, Basic blocks: %3")
|
+ tr("Size: %1, Cyclomatic complexity: %2, Basic blocks: %3")
|
||||||
.arg(size)
|
.arg(size)
|
||||||
@ -495,7 +495,7 @@ FunctionsWidget::FunctionsWidget(MainWindow *main, QAction *action) :
|
|||||||
// Radare core found in:
|
// Radare core found in:
|
||||||
this->main = main;
|
this->main = main;
|
||||||
|
|
||||||
setStyleSheet(QString("QToolTip { max-width: %2px; opacity: 230; }").arg(kMaxTooltipWidth));
|
setStyleSheet(QString("QToolTip { max-width: %1px; opacity: 230; }").arg(kMaxTooltipWidth));
|
||||||
|
|
||||||
// leave the filter visible by default so users know it exists
|
// leave the filter visible by default so users know it exists
|
||||||
//ui->filterLineEdit->setVisible(false);
|
//ui->filterLineEdit->setVisible(false);
|
||||||
|
Loading…
Reference in New Issue
Block a user