X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fuisupport%2Fbufferview.h;h=ce8b956ac3613d776b89eef52c96b4a2f15797ef;hp=3e0384c4ebbf32d5c2f53949d75cbb1afa1931b4;hb=e30092afc1803d753914a7ab9fa88bba818de559;hpb=aab02573197e93132c9263df28b23ec718c4e9b4 diff --git a/src/uisupport/bufferview.h b/src/uisupport/bufferview.h index 3e0384c4..ce8b956a 100644 --- a/src/uisupport/bufferview.h +++ b/src/uisupport/bufferview.h @@ -90,7 +90,31 @@ private slots: void joinChannel(const QModelIndex &index); void toggleHeader(bool checked); + /** + * Expand all active networks and collapse inactive ones unless manually changed + * + * Applies to all networks. Shouldn't need called except during initialization. + */ + void setExpandedState(); + + /** + * Save the current display state of the given network + * + * Tracks expanded or collapsed and active or inactive. + * + * @see setExpandedState() + * @param[in] networkIdx QModelIndex of the root network to store + */ void storeExpandedState(const QModelIndex &networkIdx); + + /** + * Set the display state of the given network according to network status and manual changes + * + * Expands if active or previously expanded, collapses if inactive or previously collapsed. + * + * @see storeExpandedState() + * @param[in] networkIdx QModelIndex of the root network to update + */ void setExpandedState(const QModelIndex &networkIdx); void on_configChanged();