mirror of
https://bitbucket.org/smil3y/katie.git
synced 2025-02-23 18:32:55 +00:00
compiler warning fixes
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
dc9b5fe04e
commit
18f13be43e
5 changed files with 0 additions and 18 deletions
|
@ -47,13 +47,7 @@ QT_BEGIN_NAMESPACE
|
|||
|
||||
// These fudge terms were needed a few places to obtain pixel-perfect results
|
||||
const int GapBetweenLogoAndRightEdge = 5;
|
||||
const int ModernHeaderTopMargin = 2;
|
||||
const int ClassicHMargin = 4;
|
||||
const int MacButtonTopMargin = 13;
|
||||
const int MacLayoutLeftMargin = 20;
|
||||
//const int MacLayoutTopMargin = 14; // Unused. Save some space and avoid warning.
|
||||
const int MacLayoutRightMargin = 20;
|
||||
const int MacLayoutBottomMargin = 17;
|
||||
|
||||
static void changeSpacerSize(QLayout *layout, int index, int width, int height)
|
||||
{
|
||||
|
@ -813,9 +807,6 @@ void QWizardPrivate::recreateLayout(const QWizardLayoutInfo &info)
|
|||
*/
|
||||
|
||||
int deltaMarginLeft = info.topLevelMarginLeft - info.childMarginLeft;
|
||||
int deltaMarginRight = info.topLevelMarginRight - info.childMarginRight;
|
||||
int deltaMarginTop = info.topLevelMarginTop - info.childMarginTop;
|
||||
int deltaMarginBottom = info.topLevelMarginBottom - info.childMarginBottom;
|
||||
int deltaVSpacing = info.topLevelMarginBottom - info.vspacing;
|
||||
|
||||
int row = 0;
|
||||
|
|
|
@ -2947,7 +2947,6 @@ void QGraphicsItemPrivate::setFocusHelper(Qt::FocusReason focusReason, bool clim
|
|||
QGraphicsItem *p = parent;
|
||||
while (p) {
|
||||
if (p->flags() & QGraphicsItem::ItemIsFocusScope) {
|
||||
QGraphicsItem *oldFocusScopeItem = p->d_ptr->focusScopeItem;
|
||||
p->d_ptr->focusScopeItem = q_ptr;
|
||||
if (!p->focusItem() && !focusFromHide) {
|
||||
// Calling setFocus() on a child of a focus scope that does
|
||||
|
|
|
@ -82,17 +82,14 @@ bool QWidgetBackingStore::flushPaint(QWidget *widget, const QRegion &rgn)
|
|||
if (!widget)
|
||||
return false;
|
||||
|
||||
int delay = 0;
|
||||
if (widget->testAttribute(Qt::WA_WState_InPaintEvent)) {
|
||||
static int flushPaintEvent = qgetenv("QT_FLUSH_PAINT_EVENT").toInt();
|
||||
if (!flushPaintEvent)
|
||||
return false;
|
||||
delay = flushPaintEvent;
|
||||
} else {
|
||||
static int flushPaint = qgetenv("QT_FLUSH_PAINT").toInt();
|
||||
if (!flushPaint)
|
||||
return false;
|
||||
delay = flushPaint;
|
||||
}
|
||||
|
||||
return true;
|
||||
|
|
|
@ -1578,7 +1578,6 @@ void QRasterPaintEngine::drawPixmap(const QRectF &r, const QPixmap &pixmap, cons
|
|||
QPixmapData* pd = pixmap.pixmapData();
|
||||
const QImage &image = pd->image;
|
||||
if (image.depth() == 1) {
|
||||
Q_D(QRasterPaintEngine);
|
||||
QRasterPaintEngineState *s = state();
|
||||
if (s->matrix.type() <= QTransform::TxTranslate
|
||||
&& r.size() == sr.size()
|
||||
|
|
|
@ -356,7 +356,6 @@ QDate QDateTimeEdit::date() const
|
|||
|
||||
void QDateTimeEdit::setDate(const QDate &date)
|
||||
{
|
||||
Q_D(QDateTimeEdit);
|
||||
if (date.isValid()) {
|
||||
setDateTime(QDateTime(date, time()));
|
||||
}
|
||||
|
@ -381,7 +380,6 @@ QTime QDateTimeEdit::time() const
|
|||
|
||||
void QDateTimeEdit::setTime(const QTime &time)
|
||||
{
|
||||
Q_D(QDateTimeEdit);
|
||||
if (time.isValid()) {
|
||||
setDateTime(QDateTime(date(), time));
|
||||
}
|
||||
|
@ -536,7 +534,6 @@ QTime QDateTimeEdit::maximumTime() const
|
|||
*/
|
||||
void QDateTimeEdit::setDateRange(const QDate &min, const QDate &max)
|
||||
{
|
||||
Q_D(QDateTimeEdit);
|
||||
if (min.isValid() && max.isValid()) {
|
||||
setDateTimeRange(QDateTime(min, minimumTime()), QDateTime(max, maximumTime()));
|
||||
}
|
||||
|
@ -553,7 +550,6 @@ void QDateTimeEdit::setDateRange(const QDate &min, const QDate &max)
|
|||
*/
|
||||
void QDateTimeEdit::setTimeRange(const QTime &min, const QTime &max)
|
||||
{
|
||||
Q_D(QDateTimeEdit);
|
||||
if (min.isValid() && max.isValid()) {
|
||||
setDateTimeRange(QDateTime(minimumDate(), min), QDateTime(maximumDate(), max));
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue