author | Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com> |
Fri, 16 Apr 2010 15:50:13 +0300 | |
changeset 18 | 2f34d5167611 |
parent 0 | 1918ee327afb |
permissions | -rw-r--r-- |
0 | 1 |
/**************************************************************************** |
2 |
** |
|
18
2f34d5167611
Revision: 201011
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
0
diff
changeset
|
3 |
** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). |
0 | 4 |
** All rights reserved. |
5 |
** Contact: Nokia Corporation (qt-info@nokia.com) |
|
6 |
** |
|
7 |
** This file is part of the Qt3Support module of the Qt Toolkit. |
|
8 |
** |
|
9 |
** $QT_BEGIN_LICENSE:LGPL$ |
|
10 |
** No Commercial Usage |
|
11 |
** This file contains pre-release code and may not be distributed. |
|
12 |
** You may use this file in accordance with the terms and conditions |
|
13 |
** contained in the Technology Preview License Agreement accompanying |
|
14 |
** this package. |
|
15 |
** |
|
16 |
** GNU Lesser General Public License Usage |
|
17 |
** Alternatively, this file may be used under the terms of the GNU Lesser |
|
18 |
** General Public License version 2.1 as published by the Free Software |
|
19 |
** Foundation and appearing in the file LICENSE.LGPL included in the |
|
20 |
** packaging of this file. Please review the following information to |
|
21 |
** ensure the GNU Lesser General Public License version 2.1 requirements |
|
22 |
** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. |
|
23 |
** |
|
24 |
** In addition, as a special exception, Nokia gives you certain additional |
|
25 |
** rights. These rights are described in the Nokia Qt LGPL Exception |
|
26 |
** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. |
|
27 |
** |
|
28 |
** If you have questions regarding the use of this file, please contact |
|
29 |
** Nokia at qt-info@nokia.com. |
|
30 |
** |
|
31 |
** |
|
32 |
** |
|
33 |
** |
|
34 |
** |
|
35 |
** |
|
36 |
** |
|
37 |
** |
|
38 |
** $QT_END_LICENSE$ |
|
39 |
** |
|
40 |
****************************************************************************/ |
|
41 |
#include "q3popupmenu.h" |
|
42 |
||
43 |
QT_BEGIN_NAMESPACE |
|
44 |
||
45 |
/*! |
|
46 |
\class Q3PopupMenu |
|
47 |
\brief The Q3PopupMenu class is a thin compatibility wrapper around QMenu. |
|
48 |
\compat |
|
49 |
||
50 |
Use QMenu in new applications. Note that the menu's actions must |
|
51 |
be \l {Q3Action}s. |
|
52 |
*/ |
|
53 |
||
54 |
/*! |
|
55 |
\fn Q3PopupMenu::Q3PopupMenu(QWidget *parent, const char *name) |
|
56 |
||
57 |
Constructs a menu with the given \a parent and \a name. |
|
58 |
*/ |
|
59 |
||
60 |
/*! |
|
61 |
\fn int Q3PopupMenu::exec() |
|
62 |
||
63 |
Pops up the menu and returns the ID of the action that was |
|
64 |
selected. |
|
65 |
||
66 |
\sa QMenu::exec() |
|
67 |
*/ |
|
68 |
||
69 |
/*! |
|
70 |
\fn int Q3PopupMenu::exec(const QPoint & pos, int indexAtPoint) |
|
71 |
||
72 |
Pops up the menu at coordinate \a pos and returns the ID of the |
|
73 |
action that was selected. |
|
74 |
||
75 |
If \a indexAtPoint is specified, the menu will pop up with the |
|
76 |
item at index \a indexAtPoint under the mouse cursor. |
|
77 |
||
78 |
\sa QMenu::exec() |
|
79 |
*/ |
|
80 |
||
81 |
||
82 |
/*! |
|
83 |
\fn void Q3PopupMenu::setFrameRect(QRect) |
|
84 |
\internal |
|
85 |
*/ |
|
86 |
||
87 |
/*! |
|
88 |
\fn QRect Q3PopupMenu::frameRect() const |
|
89 |
\internal |
|
90 |
*/ |
|
91 |
/*! |
|
92 |
\enum Q3PopupMenu::DummyFrame |
|
93 |
\internal |
|
94 |
||
95 |
\value Box |
|
96 |
\value Sunken |
|
97 |
\value Plain |
|
98 |
\value Raised |
|
99 |
\value MShadow |
|
100 |
\value NoFrame |
|
101 |
\value Panel |
|
102 |
\value StyledPanel |
|
103 |
\value HLine |
|
104 |
\value VLine |
|
105 |
\value GroupBoxPanel |
|
106 |
\value WinPanel |
|
107 |
\value ToolBarPanel |
|
108 |
\value MenuBarPanel |
|
109 |
\value PopupPanel |
|
110 |
\value LineEditPanel |
|
111 |
\value TabWidgetPanel |
|
112 |
\value MShape |
|
113 |
*/ |
|
114 |
||
115 |
/*! |
|
116 |
\fn void Q3PopupMenu::setFrameShadow(DummyFrame) |
|
117 |
\internal |
|
118 |
*/ |
|
119 |
||
120 |
/*! |
|
121 |
\fn DummyFrame Q3PopupMenu::frameShadow() const |
|
122 |
\internal |
|
123 |
*/ |
|
124 |
||
125 |
/*! |
|
126 |
\fn void Q3PopupMenu::setFrameShape(DummyFrame) |
|
127 |
\internal |
|
128 |
*/ |
|
129 |
||
130 |
/*! |
|
131 |
\fn DummyFrame Q3PopupMenu::frameShape() const |
|
132 |
\internal |
|
133 |
*/ |
|
134 |
||
135 |
/*! |
|
136 |
\fn void Q3PopupMenu::setFrameStyle(int) |
|
137 |
\internal |
|
138 |
*/ |
|
139 |
||
140 |
/*! |
|
141 |
\fn int Q3PopupMenu::frameStyle() const |
|
142 |
\internal |
|
143 |
*/ |
|
144 |
||
145 |
/*! |
|
146 |
\fn int Q3PopupMenu::frameWidth() const |
|
147 |
\internal |
|
148 |
*/ |
|
149 |
||
150 |
/*! |
|
151 |
\fn void Q3PopupMenu::setLineWidth(int) |
|
152 |
\internal |
|
153 |
*/ |
|
154 |
||
155 |
/*! |
|
156 |
\fn int Q3PopupMenu::lineWidth() const |
|
157 |
\internal |
|
158 |
*/ |
|
159 |
||
160 |
/*! |
|
161 |
\fn void Q3PopupMenu::setMargin(int margin) |
|
162 |
\since 4.2 |
|
163 |
||
164 |
Sets the width of the margin around the contents of the widget to \a margin. |
|
165 |
||
166 |
This function uses QWidget::setContentsMargins() to set the margin. |
|
167 |
\sa margin(), QWidget::setContentsMargins() |
|
168 |
*/ |
|
169 |
||
170 |
/*! |
|
171 |
\fn int Q3PopupMenu::margin() const |
|
172 |
\since 4.2 |
|
173 |
||
174 |
Returns the width of the margin around the contents of the widget. |
|
175 |
||
176 |
This function uses QWidget::getContentsMargins() to get the margin. |
|
177 |
\sa setMargin(), QWidget::getContentsMargins() |
|
178 |
*/ |
|
179 |
||
180 |
/*! |
|
181 |
\fn void Q3PopupMenu::setMidLineWidth(int) |
|
182 |
\internal |
|
183 |
*/ |
|
184 |
||
185 |
/*! |
|
186 |
\fn int Q3PopupMenu::midLineWidth() const |
|
187 |
\internal |
|
188 |
*/ |
|
189 |
||
190 |
QT_END_NAMESPACE |