mirror of
https://github.com/vale981/tdesktop
synced 2025-03-06 10:11:41 -05:00
fixed checkbox in linux
This commit is contained in:
parent
e91f93bfed
commit
9048dd7fc4
1 changed files with 2 additions and 2 deletions
|
@ -27,7 +27,7 @@ FlatCheckbox::FlatCheckbox(QWidget *parent, const QString &text, bool checked, c
|
||||||
connect(this, SIGNAL(stateChanged(int, ButtonStateChangeSource)), this, SLOT(onStateChange(int, ButtonStateChangeSource)));
|
connect(this, SIGNAL(stateChanged(int, ButtonStateChangeSource)), this, SLOT(onStateChange(int, ButtonStateChangeSource)));
|
||||||
setCursor(_st.cursor);
|
setCursor(_st.cursor);
|
||||||
int32 w = _st.width, h = _st.height;
|
int32 w = _st.width, h = _st.height;
|
||||||
if (w <= 0) w = _st.textLeft + _st.font->m.width(_text) + 1;
|
if (w <= 0) w = _st.textLeft + _st.font->m.width(_text) + 2;
|
||||||
if (h <= 0) h = qMax(_st.font->height, _st.imageRect.pxHeight());
|
if (h <= 0) h = qMax(_st.font->height, _st.imageRect.pxHeight());
|
||||||
resize(QSize(w, h));
|
resize(QSize(w, h));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue