mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-09-13 20:23:04 +02: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:
parent
215e268467
commit
9d9f6bd0db
@ -100,6 +100,9 @@ TARGET = qelectrotech
|
||||
# Ajustement des bibliotheques utilisees lors de l'edition des liens
|
||||
unix:QMAKE_LIBS_THREAD -= -lpthread
|
||||
|
||||
# Enable C++11
|
||||
QMAKE_CXXFLAGS += -std=c++11
|
||||
|
||||
# Description de l'installation
|
||||
target.path = $$join(INSTALL_PREFIX,,,$${QET_BINARY_PATH})
|
||||
|
||||
|
@ -29,7 +29,7 @@ MasterElement::MasterElement(const ElementsLocation &location, QGraphicsItem *qg
|
||||
CustomElement(location, qgi, s, state)
|
||||
{
|
||||
link_type_ = Master;
|
||||
cri_ = 0;
|
||||
cri_ = nullptr;
|
||||
connect(this, SIGNAL(elementInfoChange(DiagramContext)), this, SLOT(updateLabel()));
|
||||
}
|
||||
|
||||
@ -93,7 +93,7 @@ void MasterElement::unlinkElement(Element *elmt) {
|
||||
if (linkedElements().isEmpty()) {
|
||||
diagram()->removeItem(cri_);
|
||||
delete cri_;
|
||||
cri_ = 0;
|
||||
cri_ = nullptr;
|
||||
}
|
||||
else {
|
||||
cri_->updateLabel();
|
||||
|
Loading…
x
Reference in New Issue
Block a user