X-Git-Url: https://git.quassel-irc.org/?a=blobdiff_plain;f=src%2Fuisupport%2Fabstractbuffercontainer.h;h=51b9b9ad0cb11d6f04fe9be48dc909435e5a4068;hb=8a0b44b52a6a0a855a832fa7b46f3631a8684a3f;hp=747b88520336f3438959a169183781ae78459ef6;hpb=f824db0e31b54969e0b7fa0b5405b1e9173d482c;p=quassel.git diff --git a/src/uisupport/abstractbuffercontainer.h b/src/uisupport/abstractbuffercontainer.h index 747b8852..51b9b9ad 100644 --- a/src/uisupport/abstractbuffercontainer.h +++ b/src/uisupport/abstractbuffercontainer.h @@ -1,5 +1,5 @@ /*************************************************************************** - * Copyright (C) 2005-09 by the Quassel Project * + * Copyright (C) 2005-2012 by the Quassel Project * * devel@quassel-irc.org * * * * This program is free software; you can redistribute it and/or modify * @@ -39,6 +39,7 @@ public: signals: void currentChanged(BufferId); + void currentChanged(const QModelIndex &); protected: //! Create an AbstractChatView for the given BufferId and add it to the UI if necessary @@ -51,6 +52,11 @@ protected: */ virtual void removeChatView(BufferId) = 0; + //! If true, the marker line will be set automatically on buffer switch + /** \return Whether the marker line should be set on buffer switch + */ + virtual inline bool autoMarkerLine() const { return true; } + protected slots: virtual void currentChanged(const QModelIndex ¤t, const QModelIndex &previous); virtual void rowsAboutToBeRemoved(const QModelIndex &parent, int start, int end);