|
@@ -66,17 +66,19 @@ void StatusWidget::setToolTipMessage(QString message, StatusWidget::ToolTipState
|
|
tooltip_messages_[state] = message;
|
|
tooltip_messages_[state] = message;
|
|
tooltip_state_ = ToolTipState(int(tooltip_state_) | int(state));
|
|
tooltip_state_ = ToolTipState(int(tooltip_state_) | int(state));
|
|
|
|
|
|
|
|
+ qDebug() << "Setting tooltip message " << message << " with state " << int(state) << ", new state = " << tooltip_state_;
|
|
QString message_id = message;
|
|
QString message_id = message;
|
|
if (state == E_PROCESS) {
|
|
if (state == E_PROCESS) {
|
|
message_id = "E_PROCESS";
|
|
message_id = "E_PROCESS";
|
|
}
|
|
}
|
|
|
|
|
|
- if (!tooltip_widgets_.contains(message_id)) {
|
|
|
|
- createTooltipMessageWidget(message_id);
|
|
|
|
- }
|
|
|
|
- tooltip_widgets_[message_id]->setText(message);
|
|
|
|
-
|
|
|
|
if (tooltip_state_ < state * 2) {
|
|
if (tooltip_state_ < state * 2) {
|
|
|
|
+ qDebug() << "FADING TOOLTIP to " << message_id;
|
|
|
|
+
|
|
|
|
+ if (!tooltip_widgets_.contains(message_id)) {
|
|
|
|
+ createTooltipMessageWidget(message_id);
|
|
|
|
+ }
|
|
|
|
+ tooltip_widgets_[message_id]->setText(message);
|
|
fadeBetweenToolTips(message_id);
|
|
fadeBetweenToolTips(message_id);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
@@ -104,6 +106,7 @@ void StatusWidget::unsetToolTipMessage(StatusWidget::ToolTipState state)
|
|
createTooltipMessageWidget(message_id);
|
|
createTooltipMessageWidget(message_id);
|
|
}
|
|
}
|
|
tooltip_widgets_[message_id]->setText(tooltip_messages_[showing_state]);
|
|
tooltip_widgets_[message_id]->setText(tooltip_messages_[showing_state]);
|
|
|
|
+ qDebug() << "UNSETTING TOOLTIP to " << message_id << ", deleting state " << state << ", showing state " << showing_state;
|
|
fadeBetweenToolTips(message_id);
|
|
fadeBetweenToolTips(message_id);
|
|
}
|
|
}
|
|
|
|
|
|
@@ -238,6 +241,7 @@ void StatusWidget::fadeBetweenToolTips(QString tooltip_id)
|
|
}
|
|
}
|
|
|
|
|
|
void StatusWidget::onPatchDownloaderStarted() {
|
|
void StatusWidget::onPatchDownloaderStarted() {
|
|
|
|
+ process_completed_tooltip_hide_timer_.stop();
|
|
all_patch_operations_finished_ = false;
|
|
all_patch_operations_finished_ = false;
|
|
ui->game_button->setEnabled(false);
|
|
ui->game_button->setEnabled(false);
|
|
ui->check_for_updates_button->setEnabled(false);
|
|
ui->check_for_updates_button->setEnabled(false);
|
|
@@ -266,6 +270,7 @@ void StatusWidget::onPatchDownloaderProgressChanged(Downloader::Status status) {
|
|
}
|
|
}
|
|
|
|
|
|
void StatusWidget::onPatchInstallerStarted() {
|
|
void StatusWidget::onPatchInstallerStarted() {
|
|
|
|
+ process_completed_tooltip_hide_timer_.stop();
|
|
all_patch_operations_finished_ = false;
|
|
all_patch_operations_finished_ = false;
|
|
ui->game_button->setEnabled(false);
|
|
ui->game_button->setEnabled(false);
|
|
ui->check_for_updates_button->setEnabled(false);
|
|
ui->check_for_updates_button->setEnabled(false);
|