OSDN Git Service

Remove unused functions
[qt-creator-jp/qt-creator-jp.git] / src / plugins / projectexplorer / miniprojecttargetselector.h
index adaff96..f348480 100644 (file)
@@ -2,28 +2,31 @@
 **
 ** This file is part of Qt Creator
 **
-** Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies).
+** Copyright (c) 2011 Nokia Corporation and/or its subsidiary(-ies).
 **
-** Contact: Nokia Corporation (qt-info@nokia.com)
+** Contact: Nokia Corporation (info@qt.nokia.com)
 **
-** Commercial Usage
-**
-** Licensees holding valid Qt Commercial licenses may use this file in
-** accordance with the Qt Commercial License Agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and Nokia.
 **
 ** GNU Lesser General Public License Usage
 **
-** Alternatively, this file may be used under the terms of the GNU Lesser
-** General Public License version 2.1 as published by the Free Software
-** Foundation and appearing in the file LICENSE.LGPL included in the
-** packaging of this file.  Please review the following information to
-** ensure the GNU Lesser General Public License version 2.1 requirements
-** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
+** This file may be used under the terms of the GNU Lesser General Public
+** License version 2.1 as published by the Free Software Foundation and
+** appearing in the file LICENSE.LGPL included in the packaging of this file.
+** Please review the following information to ensure the GNU Lesser General
+** Public License version 2.1 requirements will be met:
+** http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
+**
+** In addition, as a special exception, Nokia gives you certain additional
+** rights. These rights are described in the Nokia Qt LGPL Exception
+** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
+**
+** Other Usage
 **
-** If you are unsure which license is appropriate for your use, please
-** contact the sales department at http://qt.nokia.com/contact.
+** Alternatively, this file may be used in accordance with the terms and
+** conditions contained in a signed written agreement between you and Nokia.
+**
+** If you have questions regarding the use of this file, please contact
+** Nokia at info@qt.nokia.com.
 **
 **************************************************************************/
 
@@ -57,13 +60,10 @@ private:
     ProjectExplorer::Project* m_project;
 
 public:
-    ProjectListWidget(ProjectExplorer::Project *project, QWidget *parent = 0);
+    explicit ProjectListWidget(ProjectExplorer::Project *project, QWidget *parent = 0);
 
     QSize sizeHint() const;
 
-    void setBuildComboPopup();
-    void setRunComboPopup();
-
     ProjectExplorer::Project *project() const;
 
 private slots:
@@ -74,7 +74,7 @@ class MiniTargetWidget : public QWidget
 {
     Q_OBJECT
 public:
-    MiniTargetWidget(ProjectExplorer::Target *target, QWidget *parent = 0);
+    explicit MiniTargetWidget(ProjectExplorer::Target *target, QWidget *parent = 0);
     ProjectExplorer::Target *target() const;
 
     bool hasBuildConfiguration() const;
@@ -113,7 +113,7 @@ class MiniProjectTargetSelector : public QWidget
 {
     Q_OBJECT
 public:
-    MiniProjectTargetSelector(QAction *projectAction, QWidget *parent = 0);
+    explicit MiniProjectTargetSelector(QAction *projectAction, QWidget *parent = 0);
     void setVisible(bool visible);
 
 signals:
@@ -132,11 +132,13 @@ private slots:
     void mousePressEvent(QMouseEvent *);
 
 private:
+    QString fullName(ProjectExplorer::Project *project);
     int indexFor(ProjectExplorer::Project *project) const;
 
     QAction *m_projectAction;
     QComboBox *m_projectsBox;
     QStackedWidget *m_widgetStack;
+    bool m_ignoreIndexChange;
 };
 
 } // namespace Internal