X-Git-Url: https://git.quassel-irc.org/?a=blobdiff_plain;ds=sidebyside;f=src%2Fuisupport%2Fbufferview.h;h=1ea2fdf97dfc2ec03f7ac69025dc3ec2c19660cc;hb=35ca85f1c4371ee28d00d5ff0195a5b44aadb299;hp=3e0384c4ebbf32d5c2f53949d75cbb1afa1931b4;hpb=ec04cc1fb9a1bbec864cc2dc478bff46253d91b3;p=quassel.git diff --git a/src/uisupport/bufferview.h b/src/uisupport/bufferview.h index 3e0384c4..1ea2fdf9 100644 --- a/src/uisupport/bufferview.h +++ b/src/uisupport/bufferview.h @@ -1,5 +1,5 @@ /*************************************************************************** - * Copyright (C) 2005-2015 by the Quassel Project * + * Copyright (C) 2005-2018 by the Quassel Project * * devel@quassel-irc.org * * * * This program is free software; you can redistribute it and/or modify * @@ -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();