Gerrit: Use current top level as default repository

* Remove repository setting
* Disable Gerrit menu entry if there is no top level

Change-Id: Ie3f4ca36ae4e7b350034dea7a0de52382da94e90
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com>
Reviewed-by: Tobias Hunger <tobias.hunger@digia.com>
This commit is contained in:
Orgad Shaneh
2014-04-02 23:36:16 +03:00
committed by Orgad Shaneh
parent f7db3258b4
commit 0eb363f959
7 changed files with 7 additions and 26 deletions

View File

@@ -80,6 +80,7 @@ public:
QWidget *parent = 0);
~GerritDialog();
QString repositoryPath() const;
void setCurrentPath(const QString &path);
signals:
void fetchDisplay(const QSharedPointer<Gerrit::Internal::GerritChange> &);
@@ -90,9 +91,6 @@ public slots:
void fetchStarted(const QSharedPointer<Gerrit::Internal::GerritChange> &change);
void fetchFinished();
protected:
void showEvent(QShowEvent *event);
private slots:
void slotCurrentChanged();
void slotDoubleClicked(const QModelIndex &);
@@ -101,7 +99,6 @@ private slots:
void slotFetchCherryPick();
void slotFetchCheckout();
void slotRefresh();
void displayRepositoryPath();
private:
const QStandardItem *itemAt(const QModelIndex &i, int column = 0) const;