setcolor settextcolor on subtree regression bugfix, create_deb.sh dependency correction

master
Denes Matetelki 14 years ago
parent 2058864f48
commit aa7cb65609

@ -62,8 +62,8 @@ private:
void moveRight(); void moveRight();
void move(const int &x, const int &y); /// @todo Rewrite as an undo action void move(const int &x, const int &y); /// @todo Rewrite as an undo action
void setNodeColor(const QColor &color); /// @todo Rewrite as an undo action void setNodeColor(const QColor &color, const bool &subtree = false); /// @todo Rewrite as an undo action
void setNodeTextColor(const QColor &color); /// @todo Rewrite as an undo action void setNodeTextColor(const QColor &color, const bool &subtree = false); /// @todo Rewrite as an undo action
// hint mode // hint mode
void appendNumber(const int &unm); void appendNumber(const int &unm);

@ -42,7 +42,7 @@ Version: 0.2
Section: base Section: base
Priority: optional Priority: optional
Architecture: all Architecture: all
Depends: qt (>= 4.5) Depends: libqtcore4 (>= 4.6), libqtgui4 (>= 4.6), libqt4-svg (>= 4.6), libqt4-xml (>= 4.6)
Maintainer: Dénes Mátételki <denes.matetelki@gmial.com> Maintainer: Dénes Mátételki <denes.matetelki@gmial.com>
Homepage: https://gitorious.org/qtmindmap Homepage: https://gitorious.org/qtmindmap
Description: Mindmap software in Qt." > $packagedir/DEBIAN/control Description: Mindmap software in Qt." > $packagedir/DEBIAN/control

@ -412,6 +412,9 @@ void GraphLogic::nodeColor()
return; return;
} }
bool subtree(QApplication::keyboardModifiers() & Qt::ControlModifier &&
QApplication::keyboardModifiers() & Qt::ShiftModifier);
// popup a color selector dialogm def color is the curr one. // popup a color selector dialogm def color is the curr one.
QColorDialog dialog(m_graphWidget); QColorDialog dialog(m_graphWidget);
dialog.setWindowTitle(tr("Select node color")); dialog.setWindowTitle(tr("Select node color"));
@ -419,7 +422,7 @@ void GraphLogic::nodeColor()
if (!dialog.exec()) if (!dialog.exec())
return; return;
setNodeColor(dialog.selectedColor()); setNodeColor(dialog.selectedColor(), subtree);
} }
void GraphLogic::nodeTextColor() void GraphLogic::nodeTextColor()
@ -430,6 +433,9 @@ void GraphLogic::nodeTextColor()
return; return;
} }
bool subtree(QApplication::keyboardModifiers() & Qt::ControlModifier &&
QApplication::keyboardModifiers() & Qt::ShiftModifier);
// popup a color selector dialogm def color is the curr one. // popup a color selector dialogm def color is the curr one.
QColorDialog dialog(m_graphWidget); QColorDialog dialog(m_graphWidget);
dialog.setWindowTitle(tr("Select text color")); dialog.setWindowTitle(tr("Select text color"));
@ -437,7 +443,7 @@ void GraphLogic::nodeTextColor()
if (!dialog.exec()) if (!dialog.exec())
return; return;
setNodeTextColor(dialog.selectedColor()); setNodeTextColor(dialog.selectedColor(), subtree);
} }
void GraphLogic::addEdge() void GraphLogic::addEdge()
@ -599,11 +605,10 @@ void GraphLogic::move(const int &x, const int &y)
} }
} }
void GraphLogic::setNodeColor(const QColor &color) void GraphLogic::setNodeColor(const QColor &color, const bool &subtree)
{ {
QList <Node *> nodeList; QList <Node *> nodeList;
if (QApplication::keyboardModifiers() & Qt::ControlModifier && if (subtree)
QApplication::keyboardModifiers() & Qt::ShiftModifier)
{ {
nodeList = m_activeNode->subtree(); nodeList = m_activeNode->subtree();
} }
@ -620,11 +625,10 @@ void GraphLogic::setNodeColor(const QColor &color)
} }
} }
void GraphLogic::setNodeTextColor(const QColor &color) void GraphLogic::setNodeTextColor(const QColor &color, const bool &subtree)
{ {
QList <Node *> nodeList; QList <Node *> nodeList;
if (QApplication::keyboardModifiers() & Qt::ControlModifier && if (subtree)
QApplication::keyboardModifiers() & Qt::ShiftModifier)
{ {
nodeList = m_activeNode->subtree(); nodeList = m_activeNode->subtree();
} }

Loading…
Cancel
Save