mirror of
https://github.com/vale981/tdesktop
synced 2025-03-06 02:01:40 -05:00
fixed xcode warning
This commit is contained in:
parent
85ca7e0f05
commit
2532245413
1 changed files with 1 additions and 1 deletions
|
@ -24,7 +24,7 @@ Copyright (c) 2014 John Preston, https://tdesktop.com
|
|||
#include "application.h"
|
||||
|
||||
SysBtn::SysBtn(QWidget *parent, const style::sysButton &st, const QString &text) : Button(parent),
|
||||
_st(st), a_color(_st.color->c), _text(text), _overLevel(0) {
|
||||
_st(st), a_color(_st.color->c), _overLevel(0), _text(text) {
|
||||
int32 w = _st.size.width() + (_text.isEmpty() ? 0 : ((_st.size.width() - _st.img.pxWidth()) / 2 + st::titleTextButton.font->m.width(_text)));
|
||||
resize(w, _st.size.height());
|
||||
setCursor(style::cur_default);
|
||||
|
|
Loading…
Add table
Reference in a new issue