diff options
author | Andrea Diamantini <adjam7@gmail.com> | 2010-05-14 19:56:26 +0200 |
---|---|---|
committer | Andrea Diamantini <adjam7@gmail.com> | 2010-05-14 19:56:26 +0200 |
commit | 0576f6b1542b80963afa20227c7fe53e53f111e8 (patch) | |
tree | fa091938cf5f60f7a12a089eac35f4987fd15c1d /src/urlbar/stackedurlbar.h | |
parent | Show faster url to load (diff) | |
download | rekonq-0576f6b1542b80963afa20227c7fe53e53f111e8.tar.xz |
This commit reintroduces the QStackedWidget class for urlbars and let
us resize them as needed for themes different from oxygen.
This anyway seems working better with the upcoming Qt 4.7
Diffstat (limited to 'src/urlbar/stackedurlbar.h')
-rw-r--r-- | src/urlbar/stackedurlbar.h | 56 |
1 files changed, 56 insertions, 0 deletions
diff --git a/src/urlbar/stackedurlbar.h b/src/urlbar/stackedurlbar.h new file mode 100644 index 00000000..d2c76c8a --- /dev/null +++ b/src/urlbar/stackedurlbar.h @@ -0,0 +1,56 @@ +/* ============================================================ +* +* This file is a part of the rekonq project +* +* Copyright (C) 2010 by Andrea Diamantini <adjam7 at gmail dot com> +* +* +* This program is free software; you can redistribute it and/or +* modify it under the terms of the GNU General Public License as +* published by the Free Software Foundation; either version 2 of +* the License or (at your option) version 3 or any later version +* accepted by the membership of KDE e.V. (or its successor approved +* by the membership of KDE e.V.), which shall act as a proxy +* defined in Section 14 of version 3 of the license. +* +* This program is distributed in the hope that it will be useful, +* but WITHOUT ANY WARRANTY; without even the implied warranty of +* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +* GNU General Public License for more details. +* +* You should have received a copy of the GNU General Public License +* along with this program. If not, see <http://www.gnu.org/licenses/>. +* +* ============================================================ */ + + +#ifndef STACKED_URLBAR_H +#define STACKED_URLBAR_H + + +// Rekonq Includes +#include "rekonq_defines.h" + +// Qt Includes +#include <QStackedWidget> + +// Forward Declarations +class UrlBar; + + +class REKONQ_TESTS_EXPORT StackedUrlBar : public QStackedWidget +{ + Q_OBJECT + +public: + StackedUrlBar(QWidget *parent = 0); + ~StackedUrlBar(); + + UrlBar *currentUrlBar(); + UrlBar *urlBar(int index); + +private slots: + void moveBar(int, int); +}; + +#endif // STACKED_URLBAR_H |