Changeset 11089


Ignore:
Timestamp:
Aug 1, 2010, 7:56:42 PM (12 years ago)
Author:
charles
Message:

(trunk qt) #3470 "Add a bit of spacing to Qt Client's filterbar" -- experimental fix

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/qt/filterbar.cc

    r11086 r11089  
    1818#include "filters.h"
    1919#include "filterbar.h"
     20#include "hig.h"
    2021#include "prefs.h"
    2122#include "qticonloader.h"
     
    4142    int getHSpacing( QWidget * w )
    4243    {
    43         return qMax( 4, w->style()->pixelMetric( QStyle::PM_LayoutHorizontalSpacing, 0, w ) );
     44        return qMax( int(HIG::PAD_SMALL), w->style()->pixelMetric( QStyle::PM_LayoutHorizontalSpacing, 0, w ) );
    4445    }
    4546}
     
    399400{
    400401    QHBoxLayout * h = new QHBoxLayout( this );
    401     int hmargin = style()->pixelMetric( QStyle::PM_LayoutHorizontalSpacing );
     402    const int hmargin = qMax( int(HIG::PAD), style()->pixelMetric( QStyle::PM_LayoutHorizontalSpacing ) );
    402403
    403404    h->setSpacing( 0 );
Note: See TracChangeset for help on using the changeset viewer.