Skip to content

Commit 5f68ed1

Browse files
committed
1.26.2 release
1 parent 7a92db1 commit 5f68ed1

File tree

7 files changed

+24
-7
lines changed

7 files changed

+24
-7
lines changed

CHANGELOG

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1-
1.26.2 /
1+
1.26.2 / February 2, 2019
22
[Alexandr Topilski]
3+
- [Redis] Fixed discovery cluster
34

45
1.26.1 / January 13, 2019
56
[Alexandr Topilski]

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ CMAKE_MINIMUM_REQUIRED(VERSION 3.6.3) # OPENSSL_USE_STATIC_LIBS
33

44
SET(BRANDING_PROJECT_NAME "FastoNoSQL" CACHE STRING "Branding for ${BRANDING_PROJECT_NAME}") #default
55
SET(BRANDING_PROJECT_VERSION "1.26.2.0" CACHE STRING "Branding version for ${BRANDING_PROJECT_NAME}") #default
6-
SET(BRANDING_PROJECT_BUILD_TYPE_VERSION "alfa" CACHE STRING "Build version type for ${BRANDING_PROJECT_NAME}") #default
6+
SET(BRANDING_PROJECT_BUILD_TYPE_VERSION "release" CACHE STRING "Build version type for ${BRANDING_PROJECT_NAME}") #default
77
#possible variables: alfa, beta, rc, release
88

99
SET(BRANDING_PROJECT_DOMAIN "https://fastonosql.com" CACHE STRING "Branding domain url for ${BRANDING_PROJECT_NAME}") #default

FASTOREDIS_CHANGELOG

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1-
1.23.4 /
1+
1.23.4 / February 2, 2019
22
[Alexandr Topilski]
3+
- Fixed discovery cluster
34

45
1.23.3 / January 13, 2019
56
[Alexandr Topilski]

src/gui/dialogs/discovery_cluster_dialog.cpp

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838

3939
namespace {
4040
const QSize kStateIconSize = QSize(64, 64);
41-
const QString trTooltip = QObject::tr("Select items which you want add to cluster.");
41+
const QString trNoteCluster = QObject::tr("Select items which you want add to cluster.");
4242
} // namespace
4343

4444
namespace fastonosql {
@@ -63,6 +63,9 @@ DiscoveryClusterDiagnosticDialog::DiscoveryClusterDiagnosticDialog(const QString
6363

6464
status_label_ = new QLabel(translations::trTimeTemplate_1S.arg("calculate..."));
6565
icon_label_ = new QLabel;
66+
note_label_ = new QLabel(trNoteCluster);
67+
note_label_->setStyleSheet("QLabel { color: red; }");
68+
note_label_->setVisible(false);
6669
setIcon(GuiFactory::GetInstance().failIcon());
6770

6871
list_widget_ = new QTreeWidget;
@@ -75,7 +78,7 @@ DiscoveryClusterDiagnosticDialog::DiscoveryClusterDiagnosticDialog(const QString
7578
list_widget_->setSelectionMode(QAbstractItemView::MultiSelection);
7679
list_widget_->setSelectionBehavior(QAbstractItemView::SelectRows);
7780
list_widget_->setEnabled(false);
78-
list_widget_->setToolTip(trTooltip);
81+
list_widget_->setToolTip(trNoteCluster);
7982

8083
QDialogButtonBox* button_box = new QDialogButtonBox(QDialogButtonBox::Ok);
8184
button_box->setOrientation(Qt::Horizontal);
@@ -85,6 +88,7 @@ DiscoveryClusterDiagnosticDialog::DiscoveryClusterDiagnosticDialog(const QString
8588
main_layout->addWidget(execute_time_label_);
8689
main_layout->addWidget(status_label_);
8790
main_layout->addWidget(icon_label_, 1, Qt::AlignCenter);
91+
main_layout->addWidget(note_label_);
8892
main_layout->addWidget(list_widget_);
8993
main_layout->addWidget(button_box);
9094
setLayout(main_layout);
@@ -123,6 +127,7 @@ void DiscoveryClusterDiagnosticDialog::connectionResultReady(common::Error err,
123127
common::ConvertFromString(err->GetDescription(), &qerror);
124128
setIcon(GuiFactory::GetInstance().failIcon());
125129
status_label_->setText(translations::trConnectionStatusTemplate_1S.arg(qerror));
130+
note_label_->setVisible(false);
126131
return;
127132
}
128133

@@ -139,6 +144,7 @@ void DiscoveryClusterDiagnosticDialog::connectionResultReady(common::Error err,
139144
list_widget_->addTopLevelItem(item);
140145
}
141146
status_label_->setText(translations::trConnectionStatusTemplate_1S.arg(translations::trSuccess));
147+
note_label_->setVisible(true);
142148
}
143149

144150
void DiscoveryClusterDiagnosticDialog::showEvent(QShowEvent* e) {

src/gui/dialogs/discovery_cluster_dialog.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@ class DiscoveryClusterDiagnosticDialog : public BaseDialog {
7575
common::qt::gui::GlassWidget* glass_widget_;
7676
QLabel* execute_time_label_;
7777
QLabel* status_label_;
78+
QLabel* note_label_;
7879
QTreeWidget* list_widget_;
7980
QLabel* icon_label_;
8081
proxy::IClusterSettingsBaseSPtr cluster_;

src/gui/dialogs/discovery_sentinel_dialog.cpp

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,8 @@
4040

4141
namespace {
4242
const QSize kStateIconSize = QSize(64, 64);
43-
}
43+
const QString trNoteSentinel = QObject::tr("Select items which you want add to sentinel.");
44+
} // namespace
4445

4546
namespace fastonosql {
4647
namespace gui {
@@ -62,6 +63,9 @@ DiscoverySentinelDiagnosticDialog::DiscoverySentinelDiagnosticDialog(const QStri
6263

6364
status_label_ = new QLabel(translations::trTimeTemplate_1S.arg("calculate..."));
6465
icon_label_ = new QLabel;
66+
note_label_ = new QLabel(trNoteSentinel);
67+
note_label_->setStyleSheet("QLabel { color: red; }");
68+
note_label_->setVisible(false);
6569
setIcon(GuiFactory::GetInstance().failIcon());
6670

6771
list_widget_ = new QTreeWidget;
@@ -78,7 +82,7 @@ DiscoverySentinelDiagnosticDialog::DiscoverySentinelDiagnosticDialog(const QStri
7882
list_widget_->setSelectionBehavior(QAbstractItemView::SelectRows);
7983

8084
list_widget_->setEnabled(false);
81-
list_widget_->setToolTip(tr("Select items which you want add to sentinel."));
85+
list_widget_->setToolTip(trNoteSentinel);
8286

8387
QDialogButtonBox* button_box = new QDialogButtonBox(QDialogButtonBox::Ok);
8488
button_box->setOrientation(Qt::Horizontal);
@@ -88,6 +92,7 @@ DiscoverySentinelDiagnosticDialog::DiscoverySentinelDiagnosticDialog(const QStri
8892
main_layout->addWidget(execute_time_label_);
8993
main_layout->addWidget(status_label_);
9094
main_layout->addWidget(icon_label_, 1, Qt::AlignCenter);
95+
main_layout->addWidget(note_label_);
9196
main_layout->addWidget(list_widget_);
9297
main_layout->addWidget(button_box);
9398
setLayout(main_layout);
@@ -127,6 +132,7 @@ void DiscoverySentinelDiagnosticDialog::connectionResultReady(
127132
common::ConvertFromString(err->GetDescription(), &qerror);
128133
setIcon(GuiFactory::GetInstance().failIcon());
129134
status_label_->setText(translations::trConnectionStatusTemplate_1S.arg(qerror));
135+
note_label_->setVisible(false);
130136
return;
131137
}
132138

@@ -142,6 +148,7 @@ void DiscoverySentinelDiagnosticDialog::connectionResultReady(
142148
list_widget_->addTopLevelItem(item);
143149
}
144150
status_label_->setText(translations::trConnectionStatusTemplate_1S.arg(translations::trSuccess));
151+
note_label_->setVisible(true);
145152
}
146153

147154
void DiscoverySentinelDiagnosticDialog::showEvent(QShowEvent* e) {

src/gui/dialogs/discovery_sentinel_dialog.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ class DiscoverySentinelDiagnosticDialog : public BaseDialog {
7272
common::qt::gui::GlassWidget* glass_widget_;
7373
QLabel* execute_time_label_;
7474
QLabel* status_label_;
75+
QLabel* note_label_;
7576
QTreeWidget* list_widget_;
7677
QLabel* icon_label_;
7778
};

0 commit comments

Comments
 (0)