}
}
-QColor BufferTreeItem::foreground(int column) const {
+QColor BufferTreeItem::foreground(int /*column*/) const {
// for the time beeing we ignore the column :)
if(activity & Buffer::Highlight) {
return QColor(Qt::red);
return mimeData;
}
-bool BufferTreeModel::dropMimeData(const QMimeData *data, Qt::DropAction action, int row, int column, const QModelIndex &parent) {
+bool BufferTreeModel::dropMimeData(const QMimeData *data, Qt::DropAction /*action*/, int /*row*/, int /*column*/, const QModelIndex &parent) {
if(!(data->hasFormat("application/Quassel/BufferItem/row")
&& data->hasFormat("application/Quassel/BufferItem/network")
&& data->hasFormat("application/Quassel/BufferItem/bufferId")))
}
// This Slot indicates that the user has selected a different buffer in the gui
-void BufferTreeModel::changeCurrent(const QModelIndex ¤t, const QModelIndex &previous) {
+void BufferTreeModel::changeCurrent(const QModelIndex ¤t, const QModelIndex &/*previous*/) {
if(isBufferIndex(current)) {
currentBuffer = getBufferByIndex(current);
bufferActivity(Buffer::NoActivity, currentBuffer);
#ifndef BUILD_CORE
Style::init();
- AbstractUi foo; // This avoids an annoying linker error (bug?) where AbstractUi's vtable is not found.
- // Yes, it's fugly. Yes, I'd like an alternative.
QtGui *gui = new QtGui();
Client::init(gui);
gui->init();
Q_OBJECT
public:
- static void foo() {};
- virtual ~AbstractUi() {};
+// virtual ~AbstractUi() {};
virtual void init() {}; // called after the client is initialized
- virtual AbstractUiMsg *layoutMsg(const Message &) { return 0; }
+ virtual AbstractUiMsg *layoutMsg(const Message &) = 0;
protected slots:
virtual void connectedToCore() {}
INCLUDE_DIRECTORIES(${CMAKE_CURRENT_BINARY_DIR})
ADD_LIBRARY(qtgui ${qtgui_HDRS} ${qtgui_SRCS} ${_MOC} ${_UIC})
+TARGET_LINK_LIBRARIES(qtgui common)
\ No newline at end of file