equal
deleted
inserted
replaced
3396 QRect QGtkStyle::subElementRect(SubElement element, const QStyleOption *option, const QWidget *widget) const |
3396 QRect QGtkStyle::subElementRect(SubElement element, const QStyleOption *option, const QWidget *widget) const |
3397 { |
3397 { |
3398 Q_D(const QGtkStyle); |
3398 Q_D(const QGtkStyle); |
3399 |
3399 |
3400 QRect r = QCleanlooksStyle::subElementRect(element, option, widget); |
3400 QRect r = QCleanlooksStyle::subElementRect(element, option, widget); |
|
3401 if (!d->isThemeAvailable()) |
|
3402 return r; |
|
3403 |
3401 switch (element) { |
3404 switch (element) { |
3402 case SE_ProgressBarLabel: |
3405 case SE_ProgressBarLabel: |
3403 case SE_ProgressBarContents: |
3406 case SE_ProgressBarContents: |
3404 case SE_ProgressBarGroove: |
3407 case SE_ProgressBarGroove: |
3405 return option->rect; |
3408 return option->rect; |