[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: extragear/plasma/applets/notes
From: Sebastian Kügler <sebas () kde ! nl>
Date: 2008-04-25 14:21:29
Message-ID: 1209133289.633792.15362.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 801039 by sebas:
svg not painted, debug, comment lots of stuff
M +17 -15 notes.cpp
--- trunk/extragear/plasma/applets/notes/notes.cpp #801038:801039
@@ -49,8 +49,8 @@
m_textEdit->setLineWrapMode(QTextEdit::WidgetWidth);
-
-
+ //m_textEdit->setAttribute(Qt::WA_NoSystemBackground);
+ //m_textEdit->setAutoFillBackground(false);
KConfigGroup cg = config();
//m_textEdit->setDefaultText(i18n("Welcome to Notes Plasmoid! Type your notes here..."));
@@ -65,26 +65,26 @@
m_textEdit->setFont(font);
m_textEdit->setTextColor(textColor);
- m_textEdit->setTextBackgroundColor(QColor(0,0,0,0));
- m_textEdit->viewport()->setAutoFillBackground(false);
- m_textEdit->setAutoFillBackground(false);
- m_textEdit->setStyleSheet("background: none");
+ //m_textEdit->setTextBackgroundColor(QColor(0,0,0,0));
+ //m_textEdit->viewport()->setAutoFillBackground(false);
+ //m_textEdit->setStyleSheet("background: none");
m_proxy = new QGraphicsProxyWidget(this);
- m_proxy->setWidget(m_textEdit);
- m_proxy->show();
+ //m_proxy->setWidget(m_textEdit);
+ //m_proxy->show();
m_layout = new QGraphicsLinearLayout();
m_layout->setContentsMargins(0,0,0,0);
m_layout->setSpacing(0);
- setLayout(m_layout);
- m_layout->addItem(m_proxy);
+ //setLayout(m_layout);
+ //m_layout->addItem(m_proxy);
connect(m_textEdit, SIGNAL(textChanged()), this, SLOT(saveNote()));
//updateTextGeometry();
}
void Notes::constraintsUpdated(Plasma::Constraints constraints)
{
+ Q_UNUSED(constraints);
//XXX why does everything break so horribly if I remove this line?
setDrawStandardBackground(false);
//if (constraints & Plasma::SizeConstraint) {
@@ -121,13 +121,15 @@
const QRect &contentsRect)
{
Q_UNUSED(option);
- kDebug() << "painting";
+ Q_UNUSED(contentsRect);
- m_notes_theme.resize((int)contentsRect.width(),
- (int)contentsRect.height());
+ kDebug() << "painting" << geometry();
+
+ m_notes_theme.resize((int)geometry().width(),
+ (int)geometry().height());
m_notes_theme.paint(p,
- (int)contentsRect.left(),
- (int)contentsRect.top());
+ (int)geometry().left(),
+ (int)geometry().top());
}
void Notes::createConfigurationInterface(KConfigDialog *parent)
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic