Skip to content

Commit

Permalink
removed extra spacing around/in clock window
Browse files Browse the repository at this point in the history
  • Loading branch information
Kolcha committed Sep 10, 2024
1 parent f2d4378 commit dfa7726
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions app/gui/clock_window.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ ClockWindow::ClockWindow(QWidget* parent)
{
_layout = new QGridLayout(this);
_layout->setSizeConstraint(QLayout::SetFixedSize);
_layout->setContentsMargins(0, 0, 0, 0);
_layout->setSpacing(0);

_clock = new GraphicsDateTimeWidget(this);
_layout->addWidget(_clock);
Expand Down Expand Up @@ -208,6 +210,7 @@ void ClockWindow::resizeEvent(QResizeEvent* event)
{
QWidget::resizeEvent(event);
_overlay->resize(event->size());
_overlay->raise(); // to make sure that it is always on top

// do not apply anhoring logic during dragging
if (_is_dragging) return;
Expand Down

0 comments on commit dfa7726

Please sign in to comment.