Skip to content

Commit

Permalink
Added some documentation.
Browse files Browse the repository at this point in the history
  • Loading branch information
dragotin committed Nov 16, 2015
1 parent a56926b commit ff76a84
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 3 deletions.
3 changes: 2 additions & 1 deletion src/gui/activitywidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ QString ActivityList::accountName() const
return _accountName;
}

// ========================================================================
/* ==================================================================== */

ActivityListModel::ActivityListModel(QWidget *parent)
:QAbstractListModel(parent)
Expand Down Expand Up @@ -374,6 +374,7 @@ void ActivityWidget::slotOpenFile(QModelIndex indx)
}
}

/* ==================================================================== */

ActivitySettings::ActivitySettings(QWidget *parent)
:QWidget(parent)
Expand Down
27 changes: 25 additions & 2 deletions src/gui/activitywidget.h
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,10 @@ namespace Ui {
class Application;

/**
* @brief The ActivityListModel
* @brief Activity Structure
* @ingroup gui
*
* contains all the information describing a single activity.
*/

class Activity
Expand All @@ -66,6 +68,12 @@ class Activity

};

/**
* @brief The ActivityList
* @ingroup gui
*
* A QList based list of Activities
*/
class ActivityList:public QList<Activity>
{
// explicit ActivityList();
Expand All @@ -78,7 +86,12 @@ class ActivityList:public QList<Activity>
};



/**
* @brief The ActivityListModel
* @ingroup gui
*
* Simple list model to provide the list view with data.
*/
class ActivityListModel : public QAbstractListModel
{
Q_OBJECT
Expand Down Expand Up @@ -113,6 +126,9 @@ private slots:
/**
* @brief The ActivityWidget class
* @ingroup gui
*
* The list widget to display the activities, contained in the
* subsequent ActivitySettings widget.
*/

class ActivityWidget : public QWidget
Expand Down Expand Up @@ -143,6 +159,13 @@ public slots:
};


/**
* @brief The ActivitySettings class
* @ingroup gui
*
* Implements a tab for the settings dialog, displaying the three activity
* lists.
*/
class ActivitySettings : public QWidget
{
Q_OBJECT
Expand Down
1 change: 1 addition & 0 deletions src/gui/folderman.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -837,6 +837,7 @@ QStringList FolderMan::findFileInLocalFolders( const QString& relPath )
foreach(Folder* folder, this->map().values()) {
QString path = folder->cleanPath();
QString remRelPath;
// cut off the remote path from the server path.
remRelPath = relPath.mid(folder->remotePath().length());
path += remRelPath;

Expand Down

0 comments on commit ff76a84

Please sign in to comment.