summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrobotbrainify <robotbrainify@gmail.com>2013-10-12 08:45:24 -0400
committerrobotbrainify <robotbrainify@gmail.com>2013-10-12 08:45:24 -0400
commit71948073e9980ae517d38892fbc3fdf6b715a470 (patch)
tree0950653b0a3d9668924025d6b814d5115492982b
parentf99a3072b8ff2119972e90fa30045c21078ebf92 (diff)
downloadMultiMC-71948073e9980ae517d38892fbc3fdf6b715a470.tar
MultiMC-71948073e9980ae517d38892fbc3fdf6b715a470.tar.gz
MultiMC-71948073e9980ae517d38892fbc3fdf6b715a470.tar.lz
MultiMC-71948073e9980ae517d38892fbc3fdf6b715a470.tar.xz
MultiMC-71948073e9980ae517d38892fbc3fdf6b715a470.zip
tool tip bugfixes
-rw-r--r--gui/MCModInfoFrame.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/gui/MCModInfoFrame.cpp b/gui/MCModInfoFrame.cpp
index 4659afba..a45e30ea 100644
--- a/gui/MCModInfoFrame.cpp
+++ b/gui/MCModInfoFrame.cpp
@@ -15,7 +15,6 @@
#include "MCModInfoFrame.h"
#include "ui_MCModInfoFrame.h"
-#include <iostream>
void MCModInfoFrame::updateWithMod(Mod &m)
{
if(m.type() == m.MOD_FOLDER)
@@ -70,6 +69,7 @@ void MCModInfoFrame::setModText(QString text)
void MCModInfoFrame::setModDescription(QString text)
{
+ ui->label_ModDescription->setToolTip("");
QString intermediatetext = text.trimmed();
bool prev(false);
QChar rem('\n');
@@ -88,12 +88,11 @@ void MCModInfoFrame::setModDescription(QString text)
if(finaltext.length() > 297)
{
labeltext.append(finaltext.left(287) + "...");
- ui->label_ModDescription->setToolTip(text);
+ ui->label_ModDescription->setToolTip(text.replace('\n', "<br/>"));
}
else
{
labeltext.append(finaltext);
}
-// std::cout << finaltext.length() << std::endl;
ui->label_ModDescription->setText(labeltext);
}