diff --git a/src/libs/vmisc/share/resources/icons/win.icon.theme/16x16/status/dialog-warning.png b/src/libs/vmisc/share/resources/icons/win.icon.theme/16x16/status/dialog-warning.png
new file mode 100644
index 000000000..2f4532b95
Binary files /dev/null and b/src/libs/vmisc/share/resources/icons/win.icon.theme/16x16/status/dialog-warning.png differ
diff --git a/src/libs/vmisc/share/resources/icons/win.icon.theme/index.theme b/src/libs/vmisc/share/resources/icons/win.icon.theme/index.theme
index 5a23e1f4c..2f4022f29 100755
--- a/src/libs/vmisc/share/resources/icons/win.icon.theme/index.theme
+++ b/src/libs/vmisc/share/resources/icons/win.icon.theme/index.theme
@@ -5,13 +5,18 @@ Inherits=gnome,hicolor
Example=x-directory-normal
#Directories
-Directories=16x16/actions,24x24/actions,32x32/actions,32x32/emblems
+Directories=16x16/actions,16x16/status,24x24/actions,32x32/actions,32x32/emblems
[16x16/actions]
Size=16
Context=Actions
Type=Fixed
+[16x16/status]
+Size=16
+Context=Status
+Type=Fixed
+
[24x24/actions]
Size=24
Context=Actions
diff --git a/src/libs/vmisc/share/resources/theme.qrc b/src/libs/vmisc/share/resources/theme.qrc
index ef56f3f75..5331b991d 100644
--- a/src/libs/vmisc/share/resources/theme.qrc
+++ b/src/libs/vmisc/share/resources/theme.qrc
@@ -80,5 +80,6 @@
icons/win.icon.theme/16x16/actions/go-previous.png
icons/win.icon.theme/24x24/actions/go-previous.png
icons/win.icon.theme/32x32/actions/go-previous.png
+ icons/win.icon.theme/16x16/status/dialog-warning.png
diff --git a/src/libs/vtools/dialogs/tools/dialogdetail.cpp b/src/libs/vtools/dialogs/tools/dialogdetail.cpp
index 97b2f3b20..83276d43e 100644
--- a/src/libs/vtools/dialogs/tools/dialogdetail.cpp
+++ b/src/libs/vtools/dialogs/tools/dialogdetail.cpp
@@ -455,14 +455,27 @@ void DialogDetail::ScrollDown()
//---------------------------------------------------------------------------------------------------------------------
bool DialogDetail::DetailIsValid() const
{
+ const QIcon icon = QIcon::fromTheme("dialog-warning",
+ QIcon(":/icons/win.icon.theme/16x16/status/dialog-warning.png"));
+
+ const QPixmap pixmap = icon.pixmap(QSize(16, 16));
+ QByteArray byteArray;
+ QBuffer buffer(&byteArray);
+ pixmap.save(&buffer, "PNG");
+ QString url = QString("";
+
if (ui.listWidget->count() < 3)
{
+ url += QString(" ") + tr("You need more points!");
+ ui.helpLabel->setText(url);
return false;
}
else
{
if (FirstPointEqualLast())
{
+ url += QString(" ") +tr("First point can not equal the last point!");
+ ui.helpLabel->setText(url);
return false;
}
else
@@ -474,11 +487,14 @@ bool DialogDetail::DetailIsValid() const
if (QString::compare(previousRow, nextRow) == 0)
{
+ url += QString(" ") +tr("You have double points!");
+ ui.helpLabel->setText(url);
return false;
}
}
}
- }
+ }
+ ui.helpLabel->setText(tr("Ready!"));
return true;
}
diff --git a/src/libs/vtools/dialogs/tools/dialogdetail.ui b/src/libs/vtools/dialogs/tools/dialogdetail.ui
index 1e5536314..a0d11eb81 100644
--- a/src/libs/vtools/dialogs/tools/dialogdetail.ui
+++ b/src/libs/vtools/dialogs/tools/dialogdetail.ui
@@ -390,6 +390,19 @@
+ -
+
+
+ Ready!
+
+
+ Qt::RichText
+
+
+ false
+
+
+
-