Compare commits

...
3 changed files with 15 additions and 6 deletions
+4 -1
View File
@@ -15,7 +15,10 @@ Robomongo 1.x:
- Timestamp value is represented incorrectly (https://github.com/Studio3T/robomongo/issues/1159)
- Local Timezone shows wrong date (https://github.com/Studio3T/robomongo/issues/501)
* What's new in 1.0 (21 Apr , 2017)
* What's new in patch 1.0.3 (7 June, 2017)
- Attempt to prevent MAC OS Sierra crash related to updates notification bar
* What's new in 1.0 (21 Apr, 2017)
New Features:
- Update Notifications Bar
- Welcome Tab
+1 -1
View File
@@ -7,7 +7,7 @@ list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_LIST_DIR}/cmake")
# Project version
set(PROJECT_VERSION_MAJOR "1")
set(PROJECT_VERSION_MINOR "0")
set(PROJECT_VERSION_PATCH "0")
set(PROJECT_VERSION_PATCH "3")
set(PROJECT_VERSION_BUILD "")
set(PROJECT_VERSION "${PROJECT_VERSION_MAJOR}.${PROJECT_VERSION_MINOR}.${PROJECT_VERSION_PATCH}${PROJECT_VERSION_BUILD}")
+10 -4
View File
@@ -620,7 +620,7 @@ namespace Robomongo
createTabs();
createStatusBar();
setWindowTitle("Robomongo 1.0");
setWindowTitle("Robomongo 1.0.3");
setWindowIcon(GuiRegistry::instance().mainWindowIcon());
QTimer::singleShot(0, this, SLOT(manageConnections()));
@@ -748,11 +748,17 @@ namespace Robomongo
void MainWindow::adjustUpdatesBarHeight()
{
if (!AppRegistry::instance().settingsManager()->checkForUpdates() || !_updateBar->isVisible())
return;
QTextDocument doc;
doc.setHtml(_updateLabel->text());
auto strWidth = _updateLabel->fontMetrics().width(doc.toPlainText());
auto lineHeight = _updateLabel->fontMetrics().height();
auto widthForUpdateStr = width() - _closeButton->width();
int const strWidth = _updateLabel->fontMetrics().width(doc.toPlainText());
int const lineHeight = _updateLabel->fontMetrics().height();
int const widthForUpdateStr = width() - _closeButton->width();
if (0 == widthForUpdateStr)
return;
#ifdef __APPLE__
_updateLabel->setFixedHeight((strWidth / widthForUpdateStr + 1) * lineHeight * 1.3);