File indexing completed on 2024-04-21 04:58:12
0001 /* 0002 This file is part of the KDE project 0003 SPDX-FileCopyrightText: 2008 David Faure <faure@kde.org> 0004 SPDX-FileCopyrightText: 2009 Christoph Feck <christoph@maxiom.de> 0005 0006 SPDX-License-Identifier: GPL-2.0-or-later 0007 */ 0008 0009 #ifndef KONQANIMATEDLOGO_P_H 0010 #define KONQANIMATEDLOGO_P_H 0011 0012 #include <KAnimatedButton> 0013 0014 class QToolBar; 0015 0016 class KonqAnimatedLogo : public KAnimatedButton 0017 { 0018 Q_OBJECT 0019 0020 public: 0021 /** 0022 * Creates an animated logo button which follows the toolbar icon size 0023 */ 0024 KonqAnimatedLogo(QWidget *parent = nullptr); 0025 0026 protected: 0027 void changeEvent(QEvent *event) override; 0028 0029 private Q_SLOTS: 0030 void setAnimatedLogoSize(const QSize &); 0031 0032 private: 0033 void connectToToolBar(QToolBar *); 0034 }; 0035 0036 #endif // KONQANIMATEDLOGO_P_H