Update DBus Notify method annotation name
[lxde/liblxqt.git] / configdialog / lxqtpageselectwidget.h
CommitLineData
4ef6cee9 1/* BEGIN_COMMON_COPYRIGHT_HEADER
c4af778e 2 * (c)LGPL2+
4ef6cee9 3 *
b9223fe7 4 * LXQt - a lightweight, Qt based, desktop toolset
4ef6cee9 5 * http://razor-qt.org
6 *
7 * Copyright: 2010-2011 Razor team
8 * Authors:
626f1f31 9 * Alexander Sokoloff <sokoloff.a@gmail.com>
4ef6cee9 10 *
11 * This program or library is free software; you can redistribute it
12 * and/or modify it under the terms of the GNU Lesser General Public
13 * License as published by the Free Software Foundation; either
c4af778e 14 * version 2.1 of the License, or (at your option) any later version.
4ef6cee9 15 *
16 * This library is distributed in the hope that it will be useful,
17 * but WITHOUT ANY WARRANTY; without even the implied warranty of
18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
19 * Lesser General Public License for more details.
20
21 * You should have received a copy of the GNU Lesser General
22 * Public License along with this library; if not, write to the
23 * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
24 * Boston, MA 02110-1301 USA
25 *
26 * END_COMMON_COPYRIGHT_HEADER */
27
28
b6483430
AS
29#ifndef LXQTPAGESELECTWIDGET_H
30#define LXQTPAGESELECTWIDGET_H
4ef6cee9 31
f9cba1ba 32#include "lxqtglobals.h"
e6389bfc 33#include <QListWidget>
afd3b116 34
f05ba5af 35namespace LXQt
ad7ee7e8 36{
4ef6cee9 37
f9cba1ba 38class LXQT_API PageSelectWidget : public QListWidget
4ef6cee9 39{
40 Q_OBJECT
41public:
42 explicit PageSelectWidget(QWidget *parent = 0);
43 virtual ~PageSelectWidget();
e5a885ac
PK
44 int maxTextWidth() const;
45 bool event(QEvent * event) override;
4ef6cee9 46
47protected:
e5a885ac
PK
48 QSize viewportSizeHint() const override;
49 QSize minimumSizeHint() const override;
50
51protected slots:
52 void updateMaxTextWidth();
53
54private:
55 int mMaxTextWidth;
4ef6cee9 56};
57
f05ba5af 58} // namespace LXQt
4ef6cee9 59#endif // PAGESELECTWIDGET_H