File indexing completed on 2025-03-09 03:57:05

0001 /* ============================================================
0002  *
0003  * This file is a part of digiKam project
0004  * https://www.digikam.org
0005  *
0006  * Date        : 2010-05-28
0007  * Description : a dialog for showing the advancedrename tooltip
0008  *
0009  * SPDX-FileCopyrightText: 2010-2012 by Andi Clemens <andi dot clemens at gmail dot com>
0010  *
0011  * SPDX-License-Identifier: GPL-2.0-or-later
0012  *
0013  * ============================================================ */
0014 
0015 #ifndef DIGIKAM_TOOL_TIP_DIALOG_H
0016 #define DIGIKAM_TOOL_TIP_DIALOG_H
0017 
0018 // Qt includes
0019 
0020 #include <QDialog>
0021 
0022 namespace Digikam
0023 {
0024 
0025 class TooltipDialog : public QDialog
0026 {
0027     Q_OBJECT
0028 
0029 public:
0030 
0031     explicit TooltipDialog(QWidget* const parent);
0032     ~TooltipDialog() override;
0033 
0034     void setTooltip(const QString& tooltip);
0035     void clearTooltip();
0036 
0037 private:
0038 
0039     // Disable
0040     TooltipDialog(const TooltipDialog&)            = delete;
0041     TooltipDialog& operator=(const TooltipDialog&) = delete;
0042 
0043 private Q_SLOTS:
0044 
0045     void slotHelp();
0046 
0047 private:
0048 
0049     class Private;
0050     Private* const d;
0051 };
0052 
0053 } // namespace Digikam
0054 
0055 #endif // DIGIKAM_TOOL_TIP_DIALOG_H