Skip to content

Commit

Permalink
Started work on button to add files to staging.
Browse files Browse the repository at this point in the history
  • Loading branch information
hef committed Dec 2, 2010
1 parent 26d8dae commit 747b3fd
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 1 deletion.
3 changes: 3 additions & 0 deletions gitcommand.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@
#include <QStringList>
#include <QString>
#include <QProcess>
/**
* This class is responsible for all interactions with the git command, and therefor the git databases.
*/
class GitCommand : public QObject
{
Q_OBJECT
Expand Down
10 changes: 10 additions & 0 deletions mainwindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -109,3 +109,13 @@ void MainWindow::updateIgnoredModel(QStringList files)
{
gitIgnoredFilesModel->setStringList(files);
}

void MainWindow::on_gitAddButton_clicked()
{
//ui->git
QModelIndexList *indexList = ui->changedFileslistView->selectedIndexes();
for(int i=0; i < indexList->count(); ++i)
{
indexList->at(i);
}
}
1 change: 1 addition & 0 deletions mainwindow.h
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ class MainWindow : public QMainWindow
void repositoryChanged(QString repo);

private slots:
void on_gitAddButton_clicked();
void on_actionOpen_triggered();
void on_actionConfigure_triggered();
void boxClicked();
Expand Down
2 changes: 1 addition & 1 deletion mainwindow.ui
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ p, li { white-space: pre-wrap; }
</property>
</widget>
</widget>
<widget class="QPushButton" name="pushButton_2">
<widget class="QPushButton" name="gitAddButton">
<property name="geometry">
<rect>
<x>150</x>
Expand Down

0 comments on commit 747b3fd

Please sign in to comment.