[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: [calligra/text-annotation] plugins/textshape: Disable delete and option button at annotatio shape.
From: Mojtaba Shahi Senobari <mojtaba.shahi3000 () gmail ! com>
Date: 2013-05-31 16:48:11
Message-ID: 20130531164811.718A4A6067 () git ! kde ! org
[Download RAW message or body]
Git commit 62738e6b49fc8f8cc80e46998620ac5c5bf61fc0 by Mojtaba Shahi Senobari.
Committed on 31/05/2013 at 18:45.
Pushed by mojtabashahi into branch 'text-annotation'.
Disable delete and option button at annotatio shape.
M +26 -25 plugins/textshape/AnnotationTextShape.cpp
http://commits.kde.org/calligra/62738e6b49fc8f8cc80e46998620ac5c5bf61fc0
diff --git a/plugins/textshape/AnnotationTextShape.cpp b/plugins/textshape/AnnotationTextShape.cpp
index c36f375..bae959c 100644
--- a/plugins/textshape/AnnotationTextShape.cpp
+++ b/plugins/textshape/AnnotationTextShape.cpp
@@ -105,31 +105,32 @@ void AnnotationTextShape::paintComponent(QPainter &painter, const KoViewConverte
painter.setPen(pen);
QColor color(137, 176, 213);
painter.setBrush(color);
- painter.drawRoundedRect(rect, 10.0, 15.0, Qt::RelativeSize);
-
- int left = rect.left();
- int top = rect.top();
- QColor buttonColor(47, 150, 217);
- // Draw delete annotation button.
- painter.setBrush(buttonColor);
- painter.drawEllipse(QPoint((left + 140), (top + 7)), 5, 5);
-
- //Draw option button.
- painter.setBrush(buttonColor);
- painter.drawEllipse(QPoint((left + 128), (top + 7)), 5, 5);
-
- //Draw 'x' and 'v' in buttons.
- QPen p(QColor(210, 210, 210));
- p.setWidth(1);
- painter.setPen(p);
-
- //Draw 'x' in remove button.
- painter.drawLine(QPointF((left + 139), (top + 6)), QPointF((left + 141), (top + 8)));
- painter.drawLine(QPointF((left + 141), (top + 6)), QPointF((left + 139), (top + 8)));
-
- //Draw 'v' in option button.
- painter.drawLine(QPointF((left + 127), (top + 7)), QPointF((left + 128), (top + 8)));
- painter.drawLine(QPointF((left + 129), (top + 7)), QPointF((left + 128), (top + 8)));
+// painter.drawRoundedRect(rect, 10.0, 15.0, Qt::RelativeSize);
+ painter.drawRect(rect);
+
+// int left = rect.left();
+// int top = rect.top();
+// QColor buttonColor(47, 150, 217);
+// // Draw delete annotation button.
+// painter.setBrush(buttonColor);
+// painter.drawEllipse(QPoint((left + 140), (top + 7)), 5, 5);
+
+// //Draw option button.
+// painter.setBrush(buttonColor);
+// painter.drawEllipse(QPoint((left + 128), (top + 7)), 5, 5);
+
+// //Draw 'x' and 'v' in buttons.
+// QPen p(QColor(210, 210, 210));
+// p.setWidth(1);
+// painter.setPen(p);
+
+// //Draw 'x' in remove button.
+// painter.drawLine(QPointF((left + 139), (top + 6)), QPointF((left + 141), (top + 8)));
+// painter.drawLine(QPointF((left + 141), (top + 6)), QPointF((left + 139), (top + 8)));
+
+// //Draw 'v' in option button.
+// painter.drawLine(QPointF((left + 127), (top + 7)), QPointF((left + 128), (top + 8)));
+// painter.drawLine(QPointF((left + 129), (top + 7)), QPointF((left + 128), (top + 8)));
// Set Author and date.
QPen peninfo (Qt::darkBlue);
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic