1
/* ============================================================
3
* This file is a part of digiKam project
4
* http://www.digikam.org
7
* Description : free space widget tool tip
9
* Copyright (C) 2009-2011 by Gilles Caulier <caulier dot gilles at gmail dot com>
11
* This program is free software; you can redistribute it
12
* and/or modify it under the terms of the GNU General
13
* Public License as published by the Free Software Foundation;
14
* either version 2, or (at your option)
17
* This program is distributed in the hope that it will be useful,
18
* but WITHOUT ANY WARRANTY; without even the implied warranty of
19
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20
* GNU General Public License for more details.
22
* ============================================================ */
24
#include "freespacetooltip.h"
35
class FreeSpaceToolTip::FreeSpaceToolTipPriv
39
FreeSpaceToolTipPriv() :
49
FreeSpaceToolTip::FreeSpaceToolTip(QWidget* parent)
50
: DItemToolTip(), d(new FreeSpaceToolTipPriv)
55
FreeSpaceToolTip::~FreeSpaceToolTip()
60
void FreeSpaceToolTip::setToolTip(const QString& tip)
65
void FreeSpaceToolTip::show()
70
if (isHidden() && !toolTipIsEmpty())
76
QRect FreeSpaceToolTip::repositionRect()
83
QRect rect = d->parent->rect();
84
rect.moveTopLeft(d->parent->mapToGlobal(rect.topLeft()));
88
QString FreeSpaceToolTip::tipContents()
93
} // namespace Digikam