Ignore:
Timestamp:
Feb 11, 2010, 11:19:06 PM (15 years ago)
Author:
Dmitry A. Kuminov
Message:

trunk: Merged in qt 4.6.1 sources.

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk

  • trunk/tools/designer/src/components/signalsloteditor/signalsloteditorwindow.cpp

    r2 r561  
    22**
    33** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies).
    4 ** Contact: Qt Software Information ([email protected])
     4** All rights reserved.
     5** Contact: Nokia Corporation ([email protected])
    56**
    67** This file is part of the Qt Designer of the Qt Toolkit.
     
    2122** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
    2223**
    23 ** In addition, as a special exception, Nokia gives you certain
    24 ** additional rights. These rights are described in the Nokia Qt LGPL
    25 ** Exception version 1.0, included in the file LGPL_EXCEPTION.txt in this
    26 ** package.
     24** In addition, as a special exception, Nokia gives you certain additional
     25** rights.  These rights are described in the Nokia Qt LGPL Exception
     26** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
    2727**
    2828** GNU General Public License Usage
     
    3434** met: http://www.gnu.org/copyleft/gpl.html.
    3535**
    36 ** If you are unsure which license is appropriate for your use, please
    37 ** contact the sales department at qt-sales@nokia.com.
     36** If you
     37** @nokia.com.
    3838** $QT_END_LICENSE$
    3939**
    4040****************************************************************************/
    41 
    42 /*
    43 TRANSLATOR qdesigner_internal::ConnectionModel
    44 */
    4541
    4642#include "signalsloteditorwindow.h"
     
    7874#include <QtGui/QToolButton>
    7975#include <QtGui/QButtonGroup>
     76
    8077
    8178QT_BEGIN_NAMESPACE
     
    729726    QVBoxLayout *layout = new QVBoxLayout(this);
    730727    layout->setMargin(0);
    731     layout->addWidget(m_view);
    732 
    733     QHBoxLayout *layout2 = new QHBoxLayout;
    734     layout2->setMargin(3);
    735     layout->addLayout(layout2);
    736     layout2->addStretch();
     728    layout->setSpacing(0);
     729
     730    QToolBar *toolBar = new QToolBar;
     731    toolBar->setIconSize(QSize(22, 22));
     732    m_add_button->setIcon(createIconSet(QLatin1String("plus.png")));
     733    connect(m_add_button, SIGNAL(clicked()), this, SLOT(addConnection()));
     734    toolBar->addWidget(m_add_button);
    737735
    738736    m_remove_button->setIcon(createIconSet(QLatin1String("minus.png")));
    739737    connect(m_remove_button, SIGNAL(clicked()), this, SLOT(removeConnection()));
    740     layout2->addWidget(m_remove_button);
    741 
    742     m_add_button->setIcon(createIconSet(QLatin1String("plus.png")));
    743     connect(m_add_button, SIGNAL(clicked()), this, SLOT(addConnection()));
    744     layout2->addWidget(m_add_button);
     738    toolBar->addWidget(m_remove_button);
     739
     740    layout->addWidget(toolBar);
     741    layout->addWidget(m_view);
    745742
    746743    connect(core->formWindowManager(),
     
    762759                    this, SLOT(updateDialogSelection(Connection*)));
    763760        if (integration) {
    764             disconnect(integration, SIGNAL(objectNameChanged(QDesignerFormWindowInterface *, QObject *, QString, QString)),
    765                     this, SLOT(objectNameChanged(QDesignerFormWindowInterface *, QObject *, QString, QString)));
     761            disconnect(integration, SIGNAL(objectNameChanged(QDesignerFormWindowInterfaceQString)),
     762                    this, SLOT(objectNameChanged(QDesignerFormWindowInterfaceQString)));
    766763        }
    767764    }
     
    781778                this, SLOT(updateDialogSelection(Connection*)));
    782779        if (integration) {
    783             connect(integration, SIGNAL(objectNameChanged(QDesignerFormWindowInterface *, QObject *, QString, QString)),
    784                     this, SLOT(objectNameChanged(QDesignerFormWindowInterface *, QObject *, QString, QString)));
     780            connect(integration, SIGNAL(objectNameChanged(QDesignerFormWindowInterfaceQString)),
     781                    this, SLOT(objectNameChanged(QDesignerFormWindowInterfaceQString)));
    785782        }
    786783    }
Note: See TracChangeset for help on using the changeset viewer.