Changeset View
Changeset View
Standalone View
Standalone View
kmymoney/widgets/stdtransactionmatched.cpp
Show All 18 Lines | |||||
19 | #include "stdtransactionmatched.h" | 19 | #include "stdtransactionmatched.h" | ||
20 | #include "stdtransaction_p.h" | 20 | #include "stdtransaction_p.h" | ||
21 | 21 | | |||
22 | // ---------------------------------------------------------------------------- | 22 | // ---------------------------------------------------------------------------- | ||
23 | // QT Includes | 23 | // QT Includes | ||
24 | 24 | | |||
25 | #include <QList> | 25 | #include <QList> | ||
26 | #include <QPainter> | 26 | #include <QPainter> | ||
27 | #include <QFont> | ||||
27 | 28 | | |||
28 | // ---------------------------------------------------------------------------- | 29 | // ---------------------------------------------------------------------------- | ||
29 | // KDE Includes | 30 | // KDE Includes | ||
30 | 31 | | |||
31 | #include <KLocalizedString> | 32 | #include <KLocalizedString> | ||
32 | 33 | | |||
33 | // ---------------------------------------------------------------------------- | 34 | // ---------------------------------------------------------------------------- | ||
34 | // Project Includes | 35 | // Project Includes | ||
Show All 29 Lines | |||||
64 | { | 65 | { | ||
65 | auto rc = Transaction::paintRegisterCellSetup(painter, option, index); | 66 | auto rc = Transaction::paintRegisterCellSetup(painter, option, index); | ||
66 | 67 | | |||
67 | // if not selected paint in matched background color | 68 | // if not selected paint in matched background color | ||
68 | if (!isSelected()) { | 69 | if (!isSelected()) { | ||
69 | option.palette.setColor(QPalette::Base, KMyMoneySettings::schemeColor(SchemeColor::TransactionMatched)); | 70 | option.palette.setColor(QPalette::Base, KMyMoneySettings::schemeColor(SchemeColor::TransactionMatched)); | ||
70 | option.palette.setColor(QPalette::AlternateBase, KMyMoneySettings::schemeColor(SchemeColor::TransactionMatched)); | 71 | option.palette.setColor(QPalette::AlternateBase, KMyMoneySettings::schemeColor(SchemeColor::TransactionMatched)); | ||
71 | } | 72 | } | ||
73 | QFont font = painter->font(); | ||||
74 | font.setBold(true); | ||||
75 | painter->setFont(font); | ||||
76 | | ||||
72 | //TODO: the first line needs to be painted across all columns | 77 | //TODO: the first line needs to be painted across all columns | ||
73 | return rc; | 78 | return rc; | ||
74 | } | 79 | } | ||
75 | 80 | | |||
76 | void StdTransactionMatched::registerCellText(QString& txt, Qt::Alignment& align, int row, int col, QPainter* painter) | 81 | void StdTransactionMatched::registerCellText(QString& txt, Qt::Alignment& align, int row, int col, QPainter* painter) | ||
77 | { | 82 | { | ||
78 | Q_D(StdTransaction); | 83 | Q_D(StdTransaction); | ||
79 | // run through the standard | 84 | // run through the standard | ||
▲ Show 20 Lines • Show All 126 Lines • Show Last 20 Lines |