Skip to content
Permalink
Browse files

[ui] Reduce visual attention grab of the authentication settings wige…

…t's warning label
  • Loading branch information
nirvn authored and nyalldawson committed Jun 28, 2020
1 parent 5b6d392 commit 62563f09c83961da2b2a783dcb5e38e213553730
Showing with 27 additions and 16 deletions.
  1. +1 −1 src/gui/auth/qgsauthsettingswidget.cpp
  2. +26 −15 src/ui/auth/qgsauthsettingswidget.ui
@@ -104,7 +104,7 @@ const QString QgsAuthSettingsWidget::dataprovider() const

const QString QgsAuthSettingsWidget::formattedWarning( WarningType warning )
{
QString out = tr( "<div>Warning: credentials stored as plain text in %1.</div>" );
QString out = tr( "Warning: credentials stored as plain text in %1." );
switch ( warning )
{
case ProjectFile:
@@ -173,21 +173,32 @@
</property>
</widget>
</item>
<item row="3" column="0" colspan="3">
<widget class="QLabel" name="lblWarning">
<property name="styleSheet">
<string notr="true">QLabel{color: rgb(255, 0, 0);font-weight: bold;}</string>
</property>
<property name="text">
<string>Warning text!</string>
</property>
<property name="alignment">
<set>Qt::AlignCenter</set>
</property>
<property name="wordWrap">
<bool>true</bool>
</property>
</widget>
<item row="3" column="1" colspan="2">
<layout class="QHBoxLayout" name="horizontalLayout_2">
<item>
<widget class="QLabel" name="lblWarningIcon">
<property name="pixmap">
<pixmap>:/images/themes/default/mIconWarning.svg</pixmap>
</property>
</widget>
</item>
<item>
<widget class="QLabel" name="lblWarning">
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Fixed">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="text">
<string></string>
</property>
<property name="wordWrap">
<bool>true</bool>
</property>
</widget>
</item>
</layout>
</item>
<item row="1" column="1">
<widget class="QLineEdit" name="txtUserName">

0 comments on commit 62563f0

Please sign in to comment.
You can’t perform that action at this time.