diff options
Diffstat (limited to 'src/ClockTool.cc')
-rw-r--r-- | src/ClockTool.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ClockTool.cc b/src/ClockTool.cc index e4b6c0c..2c0ad46 100644 --- a/src/ClockTool.cc +++ b/src/ClockTool.cc | |||
@@ -257,7 +257,7 @@ void ClockTool::updateTime() { | |||
257 | return; | 257 | return; |
258 | m_button.setText(time_string); | 258 | m_button.setText(time_string); |
259 | 259 | ||
260 | int new_width = m_theme.font().textWidth(time_string, time_string_len) + 2; | 260 | unsigned int new_width = m_theme.font().textWidth(time_string, time_string_len) + 2; |
261 | if (new_width > m_button.width()) { | 261 | if (new_width > m_button.width()) { |
262 | resize(new_width, m_button.height()); | 262 | resize(new_width, m_button.height()); |
263 | resizeSig().notify(); | 263 | resizeSig().notify(); |