mirror of
https://github.com/rizinorg/cutter.git
synced 2025-02-20 13:46:06 +00:00
Fix warnings
- Use QChar to compare QString elements - dashboard.ui: no zorder for spacer
This commit is contained in:
parent
a7b70dbf8f
commit
354dcf574f
@ -605,7 +605,8 @@ QList<QString> QRCore::getList(const QString &type, const QString &subtype)
|
||||
QStringList lines = flags.split("\n");
|
||||
for (auto i : lines)
|
||||
{
|
||||
if (i[0] != 0 && i[1] == 's') continue; // skip 'fs ..'
|
||||
// TODO: is 0 in a string even possible?
|
||||
if (i[0] != QChar(0) && i[1] == QChar('s')) continue; // skip 'fs ..'
|
||||
ret << i.mid(2).replace(" ", ",");
|
||||
}
|
||||
}
|
||||
|
@ -1006,7 +1006,7 @@
|
||||
}
|
||||
|
||||
QTabWidget::pane { /* The tab widget frame */
|
||||
border-top: 0px;
|
||||
border-top: 0px;
|
||||
}
|
||||
|
||||
QTabBar::tab {
|
||||
@ -1017,8 +1017,8 @@ QTabBar::tab {
|
||||
border-top-right-radius: 0px;
|
||||
min-width: 8ex;
|
||||
padding: 5px;
|
||||
margin-bottom: 3px;
|
||||
margin-top: 3px;
|
||||
margin-bottom: 3px;
|
||||
margin-top: 3px;
|
||||
}
|
||||
|
||||
QTabBar::tab:selected {
|
||||
@ -1144,7 +1144,6 @@ QTabBar::tab:hover {
|
||||
</spacer>
|
||||
</item>
|
||||
</layout>
|
||||
<zorder>verticalSpacer_3</zorder>
|
||||
<zorder>polarWebView</zorder>
|
||||
</widget>
|
||||
</widget>
|
||||
|
@ -7,7 +7,7 @@
|
||||
|
||||
void CMyDelegate::paint(QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index) const
|
||||
{
|
||||
QStyleOptionViewItemV4 itemOption(option);
|
||||
QStyleOptionViewItem itemOption(option);
|
||||
initStyleOption(&itemOption, index);
|
||||
|
||||
itemOption.rect.adjust(10, 0, 0, 0); // Make the item rectangle 10 pixels smaller from the left side.
|
||||
|
Loading…
Reference in New Issue
Block a user