(C++) QtRoundedEditRectItem

January 25, 2018 · View on GitHub

 

 

 

 

 

(C++) QtRoundedEditRectItem

 

QtQt
CreatorLubuntu

 

QtRoundedEditRectItem is a Qt QGraphicsItem class that displays a rounded rectangle with editable text.

Technical facts

 

 

 

 

 

 

./CppQtRoundedEditRectItem/CppQtRoundedEditRectItem.pri

 


INCLUDEPATH += \     ../../Classes/CppQtRoundedEditRectItem SOURCES += \     ../../Classes/CppQtRoundedEditRectItem/qtroundededitrectitem.cpp \     ../../Classes/CppQtRoundedEditRectItem/qtroundededitrectitemdialog.cpp \     ../../Classes/CppQtRoundedEditRectItem/qtroundededitrectitempadding.cpp \     ../../Classes/CppQtRoundedEditRectItem/qtroundededitrectitem_test.cpp HEADERS  += \     ../../Classes/CppQtRoundedEditRectItem/qtroundededitrectitem.h \     ../../Classes/CppQtRoundedEditRectItem/qtroundededitrectitemdialog.h \     ../../Classes/CppQtRoundedEditRectItem/qtroundededitrectitempadding.h OTHER_FILES += \     ../../Classes/CppQtRoundedEditRectItem/Licence.txt FORMS += \     ../../Classes/CppQtRoundedEditRectItem/qtroundededitrectitemdialog.ui

 

 

 

 

 

./CppQtRoundedEditRectItem/qtroundededitrectitem.h

 


 

 

 

 

 

./CppQtRoundedEditRectItem/qtroundededitrectitem.cpp

 


 

 

 

 

 

./CppQtRoundedEditRectItem/qtroundededitrectitem_test.cpp

 


 

 

 

 

 

./CppQtRoundedEditRectItem/qtroundededitrectitemdialog.h

 


 

 

 

 

 

./CppQtRoundedEditRectItem/qtroundededitrectitemdialog.cpp

 


 

 

 

 

 

./CppQtRoundedEditRectItem/qtroundededitrectitempadding.h

 


 

 

 

 

 

./CppQtRoundedEditRectItem/qtroundededitrectitempadding.cpp

 


#include "qtroundededitrectitempadding.h" #include <iostream> bool ribi::operator==(   const QtRoundedEditRectItemPadding& lhs,   const QtRoundedEditRectItemPadding& rhs ) noexcept {   return lhs.bottom == rhs.bottom     && lhs.left == rhs.left     && lhs.right == rhs.right     && lhs.top == rhs.top   ; } bool ribi::operator!=(   const QtRoundedEditRectItemPadding& lhs,   const QtRoundedEditRectItemPadding& rhs ) noexcept {   return !(lhs == rhs); } std::ostream& ribi::operator<<(std::ostream& os, const QtRoundedEditRectItemPadding &p) noexcept {   os     << '(' << p.left << ',' << p.top << ')'     << '-'     << '(' << p.right << ',' << p.bottom << ')'   ;   return os; }