mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-19 23:20:52 +01:00
Add flags for qmake to use C++11
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@3079 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
@@ -100,6 +100,9 @@ TARGET = qelectrotech
|
|||||||
# Ajustement des bibliotheques utilisees lors de l'edition des liens
|
# Ajustement des bibliotheques utilisees lors de l'edition des liens
|
||||||
unix:QMAKE_LIBS_THREAD -= -lpthread
|
unix:QMAKE_LIBS_THREAD -= -lpthread
|
||||||
|
|
||||||
|
# Enable C++11
|
||||||
|
QMAKE_CXXFLAGS += -std=c++11
|
||||||
|
|
||||||
# Description de l'installation
|
# Description de l'installation
|
||||||
target.path = $$join(INSTALL_PREFIX,,,$${QET_BINARY_PATH})
|
target.path = $$join(INSTALL_PREFIX,,,$${QET_BINARY_PATH})
|
||||||
|
|
||||||
|
|||||||
@@ -29,7 +29,7 @@ MasterElement::MasterElement(const ElementsLocation &location, QGraphicsItem *qg
|
|||||||
CustomElement(location, qgi, s, state)
|
CustomElement(location, qgi, s, state)
|
||||||
{
|
{
|
||||||
link_type_ = Master;
|
link_type_ = Master;
|
||||||
cri_ = 0;
|
cri_ = nullptr;
|
||||||
connect(this, SIGNAL(elementInfoChange(DiagramContext)), this, SLOT(updateLabel()));
|
connect(this, SIGNAL(elementInfoChange(DiagramContext)), this, SLOT(updateLabel()));
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -93,7 +93,7 @@ void MasterElement::unlinkElement(Element *elmt) {
|
|||||||
if (linkedElements().isEmpty()) {
|
if (linkedElements().isEmpty()) {
|
||||||
diagram()->removeItem(cri_);
|
diagram()->removeItem(cri_);
|
||||||
delete cri_;
|
delete cri_;
|
||||||
cri_ = 0;
|
cri_ = nullptr;
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
cri_->updateLabel();
|
cri_->updateLabel();
|
||||||
|
|||||||
Reference in New Issue
Block a user