Skip to content

Commit 0c96792

Browse files
committedJul 6, 2017
Replace "drop down" and some dropdown by drop-down
1 parent 15be889 commit 0c96792

17 files changed

+86
-85
lines changed
 

‎NEWS

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -800,7 +800,7 @@ changed so we will just provide a bullet list of key new features here.
800800
- Make NULL value string representation configurable.
801801
- Fix feature updates in feature form from attribute table.
802802
- Add support for NULL values in value maps (comboboxes).
803-
- Use layer names instead of ids in drop down list when loading value maps from layers.
803+
- Use layer names instead of ids in drop-down list when loading value maps from layers.
804804
- Support feature form expression fields: line edits on the form which
805805
name prefix "expr_" are evaluated. Their value is interpreted as field
806806
calculator string and replaced with the calculated value.

‎doc/news.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -917,7 +917,7 @@ <H2>14.6. Providers and Data Handling</H2>
917917
<LI>Make NULL value string representation configurable.
918918
<LI>Fix feature updates in feature form from attribute table.
919919
<LI>Add support for NULL values in value maps (comboboxes).
920-
<LI>Use layer names instead of ids in drop down list when loading value maps from layers.
920+
<LI>Use layer names instead of ids in drop-down list when loading value maps from layers.
921921
<LI>Support feature form expression fields: line edits on the form which
922922
name prefix "expr_" are evaluated. Their value is interpreted as field
923923
calculator string and replaced with the calculated value.

‎doc/news.t2t

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -779,7 +779,7 @@ changed so we will just provide a bullet list of key new features here.
779779
- Make NULL value string representation configurable.
780780
- Fix feature updates in feature form from attribute table.
781781
- Add support for NULL values in value maps (comboboxes).
782-
- Use layer names instead of ids in drop down list when loading value maps from layers.
782+
- Use layer names instead of ids in drop-down list when loading value maps from layers.
783783
- Support feature form expression fields: line edits on the form which
784784
name prefix "expr_" are evaluated. Their value is interpreted as field
785785
calculator string and replaced with the calculated value.

‎python/gui/qgscolorbutton.sip

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ class QgsColorButton : QToolButton
1212
{
1313
%Docstring
1414
A cross platform button subclass for selecting colors. Will open a color chooser dialog when clicked.
15-
Offers live updates to button from color chooser dialog. An attached drop down menu allows for copying
15+
Offers live updates to button from color chooser dialog. An attached drop-down menu allows for copying
1616
and pasting colors, picking colors from the screen, and selecting colors from color swatch grids.
1717
.. versionadded:: 2.5
1818
%End
@@ -40,7 +40,7 @@ class QgsColorButton : QToolButton
4040
Construct a new color ramp button.
4141
Use ``parent`` to attach a parent QWidget to the dialog.
4242
Use ``cdt`` string to define the title to show in the color ramp dialog
43-
Use a color scheme ``registry`` for color swatch grids to show in the drop down menu. If not specified,
43+
Use a color scheme ``registry`` for color swatch grids to show in the drop-down menu. If not specified,
4444
the button will use the global color scheme registry instead
4545
%End
4646

@@ -106,16 +106,16 @@ class QgsColorButton : QToolButton
106106

107107
void setShowMenu( const bool showMenu );
108108
%Docstring
109-
Sets whether the drop down menu should be shown for the button. The default behavior is to
109+
Sets whether the drop-down menu should be shown for the button. The default behavior is to
110110
show the menu.
111-
\param showMenu set to false to hide the drop down menu
111+
\param showMenu set to false to hide the drop-down menu
112112
.. seealso:: showMenu
113113
%End
114114

115115
bool showMenu() const;
116116
%Docstring
117-
Returns whether the drop down menu is shown for the button.
118-
:return: true if drop down menu is shown
117+
Returns whether the drop-down menu is shown for the button.
118+
:return: true if drop-down menu is shown
119119
.. seealso:: setShowMenu
120120
:rtype: bool
121121
%End
@@ -138,7 +138,7 @@ class QgsColorButton : QToolButton
138138

139139
void setDefaultColor( const QColor &color );
140140
%Docstring
141-
Sets the default color for the button, which is shown in the button's drop down menu for the
141+
Sets the default color for the button, which is shown in the button's drop-down menu for the
142142
"default color" option.
143143
\param color default color for the button. Set to an invalid QColor to disable the default color
144144
option.
@@ -147,7 +147,7 @@ class QgsColorButton : QToolButton
147147

148148
QColor defaultColor() const;
149149
%Docstring
150-
Returns the default color for the button, which is shown in the button's drop down menu for the
150+
Returns the default color for the button, which is shown in the button's drop-down menu for the
151151
"default color" option.
152152
:return: default color for the button. Returns an invalid QColor if the default color
153153
option is disabled.
@@ -157,7 +157,7 @@ class QgsColorButton : QToolButton
157157

158158
void setShowNoColor( const bool showNoColorOption );
159159
%Docstring
160-
Sets whether the "no color" option should be shown in the button's drop down menu. If selected,
160+
Sets whether the "no color" option should be shown in the button's drop-down menu. If selected,
161161
the "no color" option sets the color button's color to a totally transparent color.
162162
\param showNoColorOption set to true to show the no color option. This is disabled by default.
163163
.. seealso:: showNoColor
@@ -170,7 +170,7 @@ class QgsColorButton : QToolButton
170170

171171
bool showNoColor() const;
172172
%Docstring
173-
Returns whether the "no color" option is shown in the button's drop down menu. If selected,
173+
Returns whether the "no color" option is shown in the button's drop-down menu. If selected,
174174
the "no color" option sets the color button's color to a totally transparent color.
175175
:return: true if the no color option is shown.
176176
.. seealso:: setShowNoColor
@@ -184,7 +184,7 @@ class QgsColorButton : QToolButton
184184

185185
void setNoColorString( const QString &noColorString );
186186
%Docstring
187-
Sets the string to use for the "no color" option in the button's drop down menu.
187+
Sets the string to use for the "no color" option in the button's drop-down menu.
188188
\param noColorString string to use for the "no color" menu option
189189
.. seealso:: noColorString
190190
.. seealso:: setShowNoColor
@@ -196,7 +196,7 @@ class QgsColorButton : QToolButton
196196

197197
void setShowNull( bool showNull );
198198
%Docstring
199-
Sets whether a set to null (clear) option is shown in the button's drop down menu.
199+
Sets whether a set to null (clear) option is shown in the button's drop-down menu.
200200
\param showNull set to true to show a null option
201201
.. versionadded:: 2.16
202202
.. seealso:: showNull()
@@ -205,7 +205,7 @@ class QgsColorButton : QToolButton
205205

206206
bool showNull() const;
207207
%Docstring
208-
Returns whether the set to null (clear) option is shown in the button's drop down menu.
208+
Returns whether the set to null (clear) option is shown in the button's drop-down menu.
209209
.. versionadded:: 2.16
210210
.. seealso:: setShowNull()
211211
.. seealso:: isNull()
@@ -223,7 +223,7 @@ class QgsColorButton : QToolButton
223223

224224
QString noColorString() const;
225225
%Docstring
226-
Returns the string used for the "no color" option in the button's drop down menu.
226+
Returns the string used for the "no color" option in the button's drop-down menu.
227227
:return: string used for the "no color" menu option
228228
.. seealso:: setNoColorString
229229
.. seealso:: showNoColor
@@ -237,7 +237,7 @@ class QgsColorButton : QToolButton
237237
void setContext( const QString &context );
238238
%Docstring
239239
Sets the context string for the color button. The context string is passed to all color swatch
240-
grids shown in the button's drop down menu, to allow them to customise their display colors
240+
grids shown in the button's drop-down menu, to allow them to customise their display colors
241241
based on the context.
242242
\param context context string for the color button's color swatch grids
243243
.. seealso:: context
@@ -246,7 +246,7 @@ class QgsColorButton : QToolButton
246246
QString context() const;
247247
%Docstring
248248
Returns the context string for the color button. The context string is passed to all color swatch
249-
grids shown in the button's drop down menu, to allow them to customise their display colors
249+
grids shown in the button's drop-down menu, to allow them to customise their display colors
250250
based on the context.
251251
:return: context string for the color button's color swatch grids
252252
.. seealso:: setContext
@@ -256,18 +256,18 @@ class QgsColorButton : QToolButton
256256
void setColorSchemeRegistry( QgsColorSchemeRegistry *registry );
257257
%Docstring
258258
Sets the color scheme registry for the button, which controls the color swatch grids
259-
that are shown in the button's drop down menu.
259+
that are shown in the button's drop-down menu.
260260
\param registry color scheme registry for the button. Set to 0 to hide all color
261-
swatch grids from the button's drop down menu.
261+
swatch grids from the button's drop-down menu.
262262
.. seealso:: colorSchemeRegistry
263263
%End
264264

265265
QgsColorSchemeRegistry *colorSchemeRegistry();
266266
%Docstring
267267
Returns the color scheme registry for the button, which controls the color swatch grids
268-
that are shown in the button's drop down menu.
268+
that are shown in the button's drop-down menu.
269269
:return: color scheme registry for the button. If returned value is 0 then all color
270-
swatch grids are hidden from the button's drop down menu.
270+
swatch grids are hidden from the button's drop-down menu.
271271
.. seealso:: setColorSchemeRegistry
272272
:rtype: QgsColorSchemeRegistry
273273
%End

‎python/gui/qgscolorrampbutton.sip

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ class QgsColorRampButton : QToolButton
1414
{
1515
%Docstring
1616
A cross platform button subclass for selecting color ramps. Will open color ramp dialogs when clicked.
17-
Offers live updates to button from color ramp dialog. An attached drop down menu allows for access to
17+
Offers live updates to button from color ramp dialog. An attached drop-down menu allows for access to
1818
saved color ramps, as well as option to invert the current color ramp and create new ramps.
1919
.. versionadded:: 3.0
2020
%End
@@ -75,23 +75,23 @@ class QgsColorRampButton : QToolButton
7575

7676
void setShowMenu( const bool showMenu );
7777
%Docstring
78-
Sets whether the drop down menu should be shown for the button. The default behavior is to
78+
Sets whether the drop-down menu should be shown for the button. The default behavior is to
7979
show the menu.
80-
\param showMenu set to false to hide the drop down menu
80+
\param showMenu set to false to hide the drop-down menu
8181
.. seealso:: showMenu
8282
%End
8383

8484
bool showMenu() const;
8585
%Docstring
86-
Returns whether the drop down menu is shown for the button.
87-
:return: true if drop down menu is shown
86+
Returns whether the drop-down menu is shown for the button.
87+
:return: true if drop-down menu is shown
8888
.. seealso:: setShowMenu
8989
:rtype: bool
9090
%End
9191

9292
void setDefaultColorRamp( QgsColorRamp *colorramp );
9393
%Docstring
94-
Sets the default color ramp for the button, which is shown in the button's drop down menu for the
94+
Sets the default color ramp for the button, which is shown in the button's drop-down menu for the
9595
"default color ramp" option.
9696
\param colorramp default color ramp for the button. Set to a null pointer to disable the default color
9797
ramp option. The ramp will be cloned and ownership is not transferred.
@@ -100,7 +100,7 @@ class QgsColorRampButton : QToolButton
100100

101101
QgsColorRamp *defaultColorRamp() const /Factory/;
102102
%Docstring
103-
Returns a copy of the default color ramp for the button, which is shown in the button's drop down menu for the
103+
Returns a copy of the default color ramp for the button, which is shown in the button's drop-down menu for the
104104
"default color ramp" option.
105105
:return: default color ramp for the button. Returns a null pointer if the default color ramp
106106
option is disabled.
@@ -110,14 +110,14 @@ class QgsColorRampButton : QToolButton
110110

111111
void setShowRandomColorRamp( bool showRandom );
112112
%Docstring
113-
Sets whether a random colors option is shown in the button's drop down menu.
113+
Sets whether a random colors option is shown in the button's drop-down menu.
114114
\param showRandom set to true to show a random colors option
115115
.. seealso:: showRandom()
116116
%End
117117

118118
bool showRandomColorRamp() const;
119119
%Docstring
120-
Returns whether random colors option is shown in the button's drop down menu.
120+
Returns whether random colors option is shown in the button's drop-down menu.
121121
.. seealso:: setShowRandom()
122122
:rtype: bool
123123
%End
@@ -132,15 +132,15 @@ class QgsColorRampButton : QToolButton
132132

133133
void setShowNull( bool showNull );
134134
%Docstring
135-
Sets whether a set to null (clear) option is shown in the button's drop down menu.
135+
Sets whether a set to null (clear) option is shown in the button's drop-down menu.
136136
\param showNull set to true to show a null option
137137
.. seealso:: showNull()
138138
.. seealso:: isNull()
139139
%End
140140

141141
bool showNull() const;
142142
%Docstring
143-
Returns whether the set to null (clear) option is shown in the button's drop down menu.
143+
Returns whether the set to null (clear) option is shown in the button's drop-down menu.
144144
.. seealso:: setShowNull()
145145
.. seealso:: isNull()
146146
:rtype: bool
@@ -157,7 +157,7 @@ class QgsColorRampButton : QToolButton
157157
void setContext( const QString &context );
158158
%Docstring
159159
Sets the context string for the color ramp button. The context string is passed to all color ramp
160-
preview icons shown in the button's drop down menu, to (eventually) allow them to customise their display colors
160+
preview icons shown in the button's drop-down menu, to (eventually) allow them to customise their display colors
161161
based on the context.
162162
\param context context string for the color dialog button's color ramp preview icons
163163
.. seealso:: context
@@ -166,7 +166,7 @@ class QgsColorRampButton : QToolButton
166166
QString context() const;
167167
%Docstring
168168
Returns the context string for the color ramp button. The context string is passed to all color ramp
169-
preview icons shown in the button's drop down menu, to (eventually) allow them to customise their display colors
169+
preview icons shown in the button's drop-down menu, to (eventually) allow them to customise their display colors
170170
based on the context.
171171
:return: context context string for the color dialog button's color ramp preview icons
172172
.. seealso:: setContext

‎python/gui/qgsexpressionlineedit.sip

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ class QgsExpressionLineEdit : QWidget
1818
This widget is designed for use in contexts where no layer fields are available for
1919
use in an expression. In contexts where the expression is directly associated with
2020
a layer and fields can be used, then QgsFieldExpressionWidget is a more appropriate
21-
choice as it gives users direct access to select fields from a drop down list.
21+
choice as it gives users direct access to select fields from a drop-down list.
2222

2323
QgsExpressionLineEdit also supports a multiline editor mode which is useful where
2424
more space is available for the widget, but where QgsExpressionBuilderWidget
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
<h3>Add SpatiaLite Tables</h3>
22
To define a new connection, click on <label>New</label> button and use the file browser to point to your SpatiaLite database, which is a file with a <i>.sqlite</i> extension.<p>
3-
The connections you define will be remembered for further use and available to choose from the drop down menu.
3+
The connections you define will be remembered for further use and available to choose from the drop-down menu.

‎scripts/spell_check/spelling.dat

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2403,6 +2403,7 @@ Dravadian:Dravidian
24032403
dreasm:dreams
24042404
driectly:directly
24052405
drnik:drink
2406+
drop down:drop-down
24062407
droped:dropped:*
24072408
droppped:dropped
24082409
druming:drumming

‎src/core/qgsattributetableconfig.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ class CORE_EXPORT QgsAttributeTableConfig
7171
enum ActionWidgetStyle
7272
{
7373
ButtonList, //!< A list of buttons
74-
DropDown //!< A tool button with a dropdown to select the current action
74+
DropDown //!< A tool button with a drop-down to select the current action
7575
};
7676

7777
QgsAttributeTableConfig();

‎src/core/qgscolorscheme.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ class CORE_EXPORT QgsColorScheme
6868
enum SchemeFlag
6969
{
7070
ShowInColorDialog = 0x01, //!< Show scheme in color picker dialog
71-
ShowInColorButtonMenu = 0x02, //!< Show scheme in color button drop down menu
71+
ShowInColorButtonMenu = 0x02, //!< Show scheme in color button drop-down menu
7272
ShowInAllContexts = ShowInColorDialog | ShowInColorButtonMenu //!< Show scheme in all contexts
7373
};
7474
Q_DECLARE_FLAGS( SchemeFlags, SchemeFlag )

‎src/gui/qgscolorbutton.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ QgsColorButton::QgsColorButton( QWidget *parent, const QString &cdt, QgsColorSch
6161
setMinimumSize( QSize( 24, 16 ) );
6262
connect( this, &QAbstractButton::clicked, this, &QgsColorButton::buttonClicked );
6363

64-
//setup dropdown menu
64+
//setup drop-down menu
6565
mMenu = new QMenu( this );
6666
connect( mMenu, &QMenu::aboutToShow, this, &QgsColorButton::prepareMenu );
6767
setMenu( mMenu );
@@ -597,7 +597,7 @@ void QgsColorButton::setButtonBackground( const QColor &color )
597597
{
598598
if ( !mIconSize.isValid() )
599599
{
600-
//calculate size of push button part of widget (ie, without the menu dropdown button part)
600+
//calculate size of push button part of widget (ie, without the menu drop-down button part)
601601
QStyleOptionToolButton opt;
602602
initStyleOption( &opt );
603603
QRect buttonSize = QApplication::style()->subControlRect( QStyle::CC_ToolButton, &opt, QStyle::SC_ToolButton,

‎src/gui/qgscolorbutton.h

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ class QgsPanelWidget;
2828
/** \ingroup gui
2929
* \class QgsColorButton
3030
* A cross platform button subclass for selecting colors. Will open a color chooser dialog when clicked.
31-
* Offers live updates to button from color chooser dialog. An attached drop down menu allows for copying
31+
* Offers live updates to button from color chooser dialog. An attached drop-down menu allows for copying
3232
* and pasting colors, picking colors from the screen, and selecting colors from color swatch grids.
3333
* \since QGIS 2.5
3434
*/
@@ -71,7 +71,7 @@ class GUI_EXPORT QgsColorButton : public QToolButton
7171
/** Construct a new color ramp button.
7272
* Use \a parent to attach a parent QWidget to the dialog.
7373
* Use \a cdt string to define the title to show in the color ramp dialog
74-
* Use a color scheme \a registry for color swatch grids to show in the drop down menu. If not specified,
74+
* Use a color scheme \a registry for color swatch grids to show in the drop-down menu. If not specified,
7575
* the button will use the global color scheme registry instead
7676
*/
7777
QgsColorButton( QWidget *parent SIP_TRANSFERTHIS = nullptr, const QString &cdt = "", QgsColorSchemeRegistry *registry = nullptr );
@@ -127,15 +127,15 @@ class GUI_EXPORT QgsColorButton : public QToolButton
127127
*/
128128
void setAcceptLiveUpdates( const bool accept ) { mAcceptLiveUpdates = accept; }
129129

130-
/** Sets whether the drop down menu should be shown for the button. The default behavior is to
130+
/** Sets whether the drop-down menu should be shown for the button. The default behavior is to
131131
* show the menu.
132-
* \param showMenu set to false to hide the drop down menu
132+
* \param showMenu set to false to hide the drop-down menu
133133
* \see showMenu
134134
*/
135135
void setShowMenu( const bool showMenu );
136136

137-
/** Returns whether the drop down menu is shown for the button.
138-
* \returns true if drop down menu is shown
137+
/** Returns whether the drop-down menu is shown for the button.
138+
* \returns true if drop-down menu is shown
139139
* \see setShowMenu
140140
*/
141141
bool showMenu() const { return menu() ? true : false; }
@@ -153,23 +153,23 @@ class GUI_EXPORT QgsColorButton : public QToolButton
153153
*/
154154
Behavior behavior() const { return mBehavior; }
155155

156-
/** Sets the default color for the button, which is shown in the button's drop down menu for the
156+
/** Sets the default color for the button, which is shown in the button's drop-down menu for the
157157
* "default color" option.
158158
* \param color default color for the button. Set to an invalid QColor to disable the default color
159159
* option.
160160
* \see defaultColor
161161
*/
162162
void setDefaultColor( const QColor &color );
163163

164-
/** Returns the default color for the button, which is shown in the button's drop down menu for the
164+
/** Returns the default color for the button, which is shown in the button's drop-down menu for the
165165
* "default color" option.
166166
* \returns default color for the button. Returns an invalid QColor if the default color
167167
* option is disabled.
168168
* \see setDefaultColor
169169
*/
170170
QColor defaultColor() const { return mDefaultColor; }
171171

172-
/** Sets whether the "no color" option should be shown in the button's drop down menu. If selected,
172+
/** Sets whether the "no color" option should be shown in the button's drop-down menu. If selected,
173173
* the "no color" option sets the color button's color to a totally transparent color.
174174
* \param showNoColorOption set to true to show the no color option. This is disabled by default.
175175
* \see showNoColor
@@ -179,7 +179,7 @@ class GUI_EXPORT QgsColorButton : public QToolButton
179179
*/
180180
void setShowNoColor( const bool showNoColorOption ) { mShowNoColorOption = showNoColorOption; }
181181

182-
/** Returns whether the "no color" option is shown in the button's drop down menu. If selected,
182+
/** Returns whether the "no color" option is shown in the button's drop-down menu. If selected,
183183
* the "no color" option sets the color button's color to a totally transparent color.
184184
* \returns true if the no color option is shown.
185185
* \see setShowNoColor
@@ -189,7 +189,7 @@ class GUI_EXPORT QgsColorButton : public QToolButton
189189
*/
190190
bool showNoColor() const { return mShowNoColorOption; }
191191

192-
/** Sets the string to use for the "no color" option in the button's drop down menu.
192+
/** Sets the string to use for the "no color" option in the button's drop-down menu.
193193
* \param noColorString string to use for the "no color" menu option
194194
* \see noColorString
195195
* \see setShowNoColor
@@ -198,15 +198,15 @@ class GUI_EXPORT QgsColorButton : public QToolButton
198198
*/
199199
void setNoColorString( const QString &noColorString ) { mNoColorString = noColorString; }
200200

201-
/** Sets whether a set to null (clear) option is shown in the button's drop down menu.
201+
/** Sets whether a set to null (clear) option is shown in the button's drop-down menu.
202202
* \param showNull set to true to show a null option
203203
* \since QGIS 2.16
204204
* \see showNull()
205205
* \see isNull()
206206
*/
207207
void setShowNull( bool showNull );
208208

209-
/** Returns whether the set to null (clear) option is shown in the button's drop down menu.
209+
/** Returns whether the set to null (clear) option is shown in the button's drop-down menu.
210210
* \since QGIS 2.16
211211
* \see setShowNull()
212212
* \see isNull()
@@ -220,7 +220,7 @@ class GUI_EXPORT QgsColorButton : public QToolButton
220220
*/
221221
bool isNull() const;
222222

223-
/** Returns the string used for the "no color" option in the button's drop down menu.
223+
/** Returns the string used for the "no color" option in the button's drop-down menu.
224224
* \returns string used for the "no color" menu option
225225
* \see setNoColorString
226226
* \see showNoColor
@@ -230,33 +230,33 @@ class GUI_EXPORT QgsColorButton : public QToolButton
230230
QString noColorString() const { return mNoColorString; }
231231

232232
/** Sets the context string for the color button. The context string is passed to all color swatch
233-
* grids shown in the button's drop down menu, to allow them to customise their display colors
233+
* grids shown in the button's drop-down menu, to allow them to customise their display colors
234234
* based on the context.
235235
* \param context context string for the color button's color swatch grids
236236
* \see context
237237
*/
238238
void setContext( const QString &context ) { mContext = context; }
239239

240240
/** Returns the context string for the color button. The context string is passed to all color swatch
241-
* grids shown in the button's drop down menu, to allow them to customise their display colors
241+
* grids shown in the button's drop-down menu, to allow them to customise their display colors
242242
* based on the context.
243243
* \returns context string for the color button's color swatch grids
244244
* \see setContext
245245
*/
246246
QString context() const { return mContext; }
247247

248248
/** Sets the color scheme registry for the button, which controls the color swatch grids
249-
* that are shown in the button's drop down menu.
249+
* that are shown in the button's drop-down menu.
250250
* \param registry color scheme registry for the button. Set to 0 to hide all color
251-
* swatch grids from the button's drop down menu.
251+
* swatch grids from the button's drop-down menu.
252252
* \see colorSchemeRegistry
253253
*/
254254
void setColorSchemeRegistry( QgsColorSchemeRegistry *registry ) { mColorSchemeRegistry = registry; }
255255

256256
/** Returns the color scheme registry for the button, which controls the color swatch grids
257-
* that are shown in the button's drop down menu.
257+
* that are shown in the button's drop-down menu.
258258
* \returns color scheme registry for the button. If returned value is 0 then all color
259-
* swatch grids are hidden from the button's drop down menu.
259+
* swatch grids are hidden from the button's drop-down menu.
260260
* \see setColorSchemeRegistry
261261
*/
262262
QgsColorSchemeRegistry *colorSchemeRegistry() { return mColorSchemeRegistry; }
@@ -417,7 +417,7 @@ class GUI_EXPORT QgsColorButton : public QToolButton
417417
*/
418418
void stopPicking( QPointF eventPos, bool sampleColor = true );
419419

420-
/** Create a color icon for display in the drop down menu
420+
/** Create a color icon for display in the drop-down menu
421421
* \param color for icon
422422
* \param showChecks set to true to display a checkboard pattern behind
423423
* transparent colors
@@ -444,7 +444,7 @@ class GUI_EXPORT QgsColorButton : public QToolButton
444444
*/
445445
void addRecentColor( const QColor &color );
446446

447-
/** Creates the drop down menu entries
447+
/** Creates the drop-down menu entries
448448
*/
449449
void prepareMenu();
450450
};

‎src/gui/qgscolorrampbutton.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ QgsColorRampButton::QgsColorRampButton( QWidget *parent, const QString &dialogTi
5353
setMinimumSize( QSize( 24, 16 ) );
5454
connect( this, &QPushButton::clicked, this, &QgsColorRampButton::buttonClicked );
5555

56-
//setup dropdown menu
56+
//setup drop-down menu
5757
mMenu = new QMenu( this );
5858
connect( mMenu, &QMenu::aboutToShow, this, &QgsColorRampButton::prepareMenu );
5959
setMenu( mMenu );
@@ -524,7 +524,7 @@ void QgsColorRampButton::setButtonBackground( QgsColorRamp *colorramp )
524524
{
525525
if ( !mIconSize.isValid() )
526526
{
527-
//calculate size of push button part of widget (ie, without the menu dropdown button part)
527+
//calculate size of push button part of widget (ie, without the menu drop-down button part)
528528
QStyleOptionToolButton opt;
529529
initStyleOption( &opt );
530530
QRect buttonSize = QApplication::style()->subControlRect( QStyle::CC_ToolButton, &opt, QStyle::SC_ToolButton,

‎src/gui/qgscolorrampbutton.h

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ class QgsPanelWidget;
2929
/** \ingroup gui
3030
* \class QgsColorRampButton
3131
* A cross platform button subclass for selecting color ramps. Will open color ramp dialogs when clicked.
32-
* Offers live updates to button from color ramp dialog. An attached drop down menu allows for access to
32+
* Offers live updates to button from color ramp dialog. An attached drop-down menu allows for access to
3333
* saved color ramps, as well as option to invert the current color ramp and create new ramps.
3434
* \since QGIS 3.0
3535
*/
@@ -84,42 +84,42 @@ class GUI_EXPORT QgsColorRampButton : public QToolButton
8484
*/
8585
void setAcceptLiveUpdates( const bool accept ) { mAcceptLiveUpdates = accept; }
8686

87-
/** Sets whether the drop down menu should be shown for the button. The default behavior is to
87+
/** Sets whether the drop-down menu should be shown for the button. The default behavior is to
8888
* show the menu.
89-
* \param showMenu set to false to hide the drop down menu
89+
* \param showMenu set to false to hide the drop-down menu
9090
* \see showMenu
9191
*/
9292
void setShowMenu( const bool showMenu );
9393

94-
/** Returns whether the drop down menu is shown for the button.
95-
* \returns true if drop down menu is shown
94+
/** Returns whether the drop-down menu is shown for the button.
95+
* \returns true if drop-down menu is shown
9696
* \see setShowMenu
9797
*/
9898
bool showMenu() const { return menu() ? true : false; }
9999

100-
/** Sets the default color ramp for the button, which is shown in the button's drop down menu for the
100+
/** Sets the default color ramp for the button, which is shown in the button's drop-down menu for the
101101
* "default color ramp" option.
102102
* \param colorramp default color ramp for the button. Set to a null pointer to disable the default color
103103
* ramp option. The ramp will be cloned and ownership is not transferred.
104104
* \see defaultColorRamp
105105
*/
106106
void setDefaultColorRamp( QgsColorRamp *colorramp );
107107

108-
/** Returns a copy of the default color ramp for the button, which is shown in the button's drop down menu for the
108+
/** Returns a copy of the default color ramp for the button, which is shown in the button's drop-down menu for the
109109
* "default color ramp" option.
110110
* \returns default color ramp for the button. Returns a null pointer if the default color ramp
111111
* option is disabled.
112112
* \see setDefaultColorRamp
113113
*/
114114
QgsColorRamp *defaultColorRamp() const SIP_FACTORY { return mDefaultColorRamp ? mDefaultColorRamp->clone() : nullptr ; }
115115

116-
/** Sets whether a random colors option is shown in the button's drop down menu.
116+
/** Sets whether a random colors option is shown in the button's drop-down menu.
117117
* \param showRandom set to true to show a random colors option
118118
* \see showRandom()
119119
*/
120120
void setShowRandomColorRamp( bool showRandom ) { mShowRandomColorRamp = showRandom; }
121121

122-
/** Returns whether random colors option is shown in the button's drop down menu.
122+
/** Returns whether random colors option is shown in the button's drop-down menu.
123123
* \see setShowRandom()
124124
*/
125125
bool showRandomColorRamp() const { return mShowRandomColorRamp; }
@@ -130,14 +130,14 @@ class GUI_EXPORT QgsColorRampButton : public QToolButton
130130
*/
131131
bool isRandomColorRamp() const;
132132

133-
/** Sets whether a set to null (clear) option is shown in the button's drop down menu.
133+
/** Sets whether a set to null (clear) option is shown in the button's drop-down menu.
134134
* \param showNull set to true to show a null option
135135
* \see showNull()
136136
* \see isNull()
137137
*/
138138
void setShowNull( bool showNull );
139139

140-
/** Returns whether the set to null (clear) option is shown in the button's drop down menu.
140+
/** Returns whether the set to null (clear) option is shown in the button's drop-down menu.
141141
* \see setShowNull()
142142
* \see isNull()
143143
*/
@@ -150,15 +150,15 @@ class GUI_EXPORT QgsColorRampButton : public QToolButton
150150
bool isNull() const;
151151

152152
/** Sets the context string for the color ramp button. The context string is passed to all color ramp
153-
* preview icons shown in the button's drop down menu, to (eventually) allow them to customise their display colors
153+
* preview icons shown in the button's drop-down menu, to (eventually) allow them to customise their display colors
154154
* based on the context.
155155
* \param context context string for the color dialog button's color ramp preview icons
156156
* \see context
157157
*/
158158
void setContext( const QString &context ) { mContext = context; }
159159

160160
/** Returns the context string for the color ramp button. The context string is passed to all color ramp
161-
* preview icons shown in the button's drop down menu, to (eventually) allow them to customise their display colors
161+
* preview icons shown in the button's drop-down menu, to (eventually) allow them to customise their display colors
162162
* based on the context.
163163
* \returns context context string for the color dialog button's color ramp preview icons
164164
* \see setContext
@@ -270,7 +270,7 @@ class GUI_EXPORT QgsColorRampButton : public QToolButton
270270

271271
QSize mIconSize;
272272

273-
/** Create a color ramp icon for display in the drop down menu
273+
/** Create a color ramp icon for display in the drop-down menu
274274
* \param colorramp Color ramp to create an icon from
275275
*/
276276
QPixmap createMenuIcon( QgsColorRamp *colorramp );
@@ -299,7 +299,7 @@ class GUI_EXPORT QgsColorRampButton : public QToolButton
299299
*/
300300
void loadColorRamp();
301301

302-
/** Creates the drop down menu entries
302+
/** Creates the drop-down menu entries
303303
*/
304304
void prepareMenu();
305305
};

‎src/gui/qgscolorwidgets.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -639,7 +639,7 @@ class GUI_EXPORT QgsColorTextWidget : public QgsColorWidget
639639

640640
QLineEdit *mLineEdit = nullptr;
641641

642-
/*Dropdown menu button*/
642+
/*Drop-down menu button*/
643643
QToolButton *mMenuButton = nullptr;
644644

645645
/*Display format for colors*/
@@ -655,7 +655,7 @@ class GUI_EXPORT QgsColorTextWidget : public QgsColorWidget
655655
*/
656656
void textChanged();
657657

658-
/** Called when the dropdown arrow is clicked to show the format selection menu
658+
/** Called when the drop-down arrow is clicked to show the format selection menu
659659
*/
660660
void showMenu();
661661
};

‎src/gui/qgsexpressionlineedit.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ class QgsCodeEditorSQL;
3737
* This widget is designed for use in contexts where no layer fields are available for
3838
* use in an expression. In contexts where the expression is directly associated with
3939
* a layer and fields can be used, then QgsFieldExpressionWidget is a more appropriate
40-
* choice as it gives users direct access to select fields from a drop down list.
40+
* choice as it gives users direct access to select fields from a drop-down list.
4141
*
4242
* QgsExpressionLineEdit also supports a multiline editor mode which is useful where
4343
* more space is available for the widget, but where QgsExpressionBuilderWidget

‎src/providers/delimitedtext/qgsdelimitedtextsourceselect.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -379,7 +379,7 @@ bool QgsDelimitedTextSourceSelect::loadDelimitedFileDefinition()
379379

380380
void QgsDelimitedTextSourceSelect::updateFieldLists()
381381
{
382-
// Update the x and y field dropdown boxes
382+
// Update the x and y field drop-down boxes
383383
QgsDebugMsg( "Updating field lists" );
384384

385385
disconnect( cmbXField, static_cast<void ( QComboBox::* )( int )>( &QComboBox::currentIndexChanged ), this, &QgsDelimitedTextSourceSelect::enableAccept );

0 commit comments

Comments
 (0)
Please sign in to comment.