[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: extragear/office/skrooge
From: Stephane Mankowski <stephane () mankowski ! fr>
Date: 2011-02-16 19:41:22
Message-ID: 20110216194122.5B9C1AC8BC () svn ! kde ! org
[Download RAW message or body]
SVN commit 1221124 by smankowski:
Correction: Better tooltips in report (usefull for huge report where lines title is \
not visible)
M +1 -0 CHANGELOG
M +8 -3 skgbasegui/skgtablewithgraph.cpp
--- trunk/extragear/office/skrooge/CHANGELOG #1221123:1221124
@@ -18,6 +18,7 @@
*Correction: Better initial state for the window (docks, maximized)
*Correction: Bookmark of report
*Correction: Many small correction in "interest" computation (tooltips, items in \
combo box, computation, ...) + *Correction: Better tooltips in report (usefull for \
huge report where lines title is not visible)
*New feature: Import csv with ' as cote (for "Money Manager Ex" exports)
*New feature: Import csv is now possible on file without header
*New feature: Import csv supports more than one "category" column
--- trunk/extragear/office/skrooge/skgbasegui/skgtablewithgraph.cpp #1221123:1221124
@@ -740,6 +740,7 @@
}
} else {
//Add a value
+ QString tooltip = line.at(0) + '\n' + \
groupedTable.at(0).at(j); if(!val.isEmpty()) {
if(j == m_indexLinearRegression) {
//A linear regression value
@@ -747,10 +748,13 @@
} else {
//A single value
double vald = SKGServices::stringToDouble(val);
+ QString vals = locale->formatMoney(vald, \
m_primaryUnit.Symbol, m_primaryUnit.NbDecimal); + \
tooltip += '\n' + vals;
- item = new \
QTableWidgetItem(locale->formatMoney(vald, m_primaryUnit.Symbol, \
m_primaryUnit.NbDecimal)); + item = new \
QTableWidgetItem(vals); + item->setToolTip(tooltip);
if(!m_secondaryUnit.Symbol.isEmpty() && \
m_secondaryUnit.Value) {
- item->setToolTip(locale->formatMoney(vald / \
m_secondaryUnit.Value, m_secondaryUnit.Symbol, m_secondaryUnit.NbDecimal)); + \
item->setToolTip(tooltip + '\n' + locale->formatMoney(vald / m_secondaryUnit.Value, \
m_secondaryUnit.Symbol, m_secondaryUnit.NbDecimal)); }
item->setData(DATA_VALUE, vald);
@@ -765,6 +769,7 @@
} else {
//An empty value
item = new QTableWidgetItem("");
+ item->setToolTip(tooltip);
item->setData(DATA_VALUE, "");
}
item->setFlags((j >= nbRealColumns && j != m_indexSum) || \
ui.kTable->horizontalHeaderItem(j)->text() == "0000" ? Qt::NoItemFlags : \
Qt::ItemIsEnabled | Qt::ItemIsSelectable); @@ -1314,7 +1319,7 @@
if(graphItem) {
graphItem->setZValue(5);
- graphItem->setToolTip(xname + '\n' + yname + '\n' + \
valstring + '\n' + tableItem->toolTip()); + \
graphItem->setToolTip(tableItem->toolTip());
bool isSelect = (isSelectable() && \
tableItem->flags() & Qt::ItemIsEnabled);
graphItem->setFlag(QGraphicsItem::ItemIsSelectable, \
isSelect);
if(isSelect) \
graphItem->setCursor(Qt::PointingHandCursor);
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic