forked from qt-creator/qt-creator
Rework the project settings.
This has still a few missing things, but this enough to start getting some feedback. Missing are non qt projects, a solution for the runconfiguration, a missing black line between the treeview on top and the project settings at the bottom. Some flickering with removing/adding widgets to the QScrollArea and not showing the expanded widget if the Details button is right at the bottom.
This commit is contained in:
@@ -32,14 +32,15 @@
|
||||
|
||||
#include <QtGui/QWidget>
|
||||
#include <QtGui/QScrollArea>
|
||||
#include <QtGui/QTreeWidget>
|
||||
|
||||
QT_BEGIN_NAMESPACE
|
||||
class QLabel;
|
||||
class QVBoxLayout;
|
||||
class QModelIndex;
|
||||
class QTabWidget;
|
||||
class QTreeWidget;
|
||||
class QTreeWidgetItem;
|
||||
class QHBoxLayout;
|
||||
QT_END_NAMESPACE
|
||||
|
||||
namespace ProjectExplorer {
|
||||
@@ -68,11 +69,26 @@ private:
|
||||
{
|
||||
QLabel *nameLabel;
|
||||
QWidget *panelWidget;
|
||||
QHBoxLayout *marginLayout;
|
||||
};
|
||||
QVBoxLayout *m_layout;
|
||||
QList<Panel> m_panels;
|
||||
};
|
||||
|
||||
|
||||
class ProjectView : public QTreeWidget
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
ProjectView (QWidget *parent);
|
||||
~ProjectView ();
|
||||
virtual QSize sizeHint() const;
|
||||
private slots:
|
||||
void updateSizeHint();
|
||||
private:
|
||||
QSize m_sizeHint;
|
||||
};
|
||||
|
||||
class ProjectWindow : public QWidget
|
||||
{
|
||||
Q_OBJECT
|
||||
@@ -98,13 +114,14 @@ private:
|
||||
SessionManager *m_session;
|
||||
ProjectExplorerPlugin *m_projectExplorer;
|
||||
|
||||
QTreeWidget* m_treeWidget;
|
||||
ProjectView* m_treeWidget;
|
||||
PanelsWidget *m_panelsWidget;
|
||||
|
||||
Project *findProject(const QString &path) const;
|
||||
bool m_currentItemChanged;
|
||||
};
|
||||
|
||||
|
||||
} // namespace Internal
|
||||
} // namespace ProjectExplorer
|
||||
|
||||
|
||||
Reference in New Issue
Block a user