Changeset 6c5eece in confclerk_git


Ignore:
Timestamp:
08/18/21 19:56:32 (9 months ago)
Author:
Philipp Spitzer <philipp@…>
Branches:
master
Children:
4523005
Parents:
3254de1
Message:

Partially fix bug Debian BTS #992236 (width of DayNavigatorWidget?).

https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=992236
Could be reproduced by setting environment variable QT_FONT_DPI to 200.

Location:
src/gui
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • src/gui/daynavigatorwidget.cpp

    r3254de1 r6c5eece  
    8484}
    8585
     86QSize DayNavigatorWidget::minimumSizeHint() const {
     87#ifdef MAEMO
     88    return QSize(20, 0);
     89#else
     90    return QSize(fontMetrics().lineSpacing() * 3 / 2, 0);
     91#endif
     92}
     93
    8694
    8795void DayNavigatorWidget::configureNavigation() {
  • src/gui/daynavigatorwidget.h

    r3254de1 r6c5eece  
    3939        QDate endDate() const {return mEndDate;}
    4040        void unsetDates();
     41        virtual QSize minimumSizeHint() const override;
    4142    protected:
    4243        void paintEvent(QPaintEvent *);
  • src/gui/mainwindow.ui

    r3254de1 r6c5eece  
    2727   <layout class="QHBoxLayout" name="horizontalLayout">
    2828    <item>
    29      <widget class="DayNavigatorWidget" name="dayNavigator" native="true">
    30       <property name="minimumSize">
    31        <size>
    32         <width>20</width>
    33         <height>0</height>
    34        </size>
    35       </property>
    36      </widget>
     29     <widget class="DayNavigatorWidget" name="dayNavigator" native="true"/>
    3730    </item>
    3831    <item>
Note: See TracChangeset for help on using the changeset viewer.