svn path=/trunk/KDE/kdebase/apps/; revision=
1103376
//BEGIN: category information
}
//BEGIN: category information
}
-int DolphinCategoryDrawer::categoryHeight(const QModelIndex &index, const QStyleOption &option) const
+int DolphinCategoryDrawer::categoryHeight(const QModelIndex &index, const QStyleOption &) const
{
int iconSize = KIconLoader::global()->currentSize(KIconLoader::Small);
QFont font(QApplication::font());
{
int iconSize = KIconLoader::global()->currentSize(KIconLoader::Small);
QFont font(QApplication::font());
return heightWithoutIcon + 5;
}
return heightWithoutIcon + 5;
}
-void DolphinCategoryDrawer::mouseButtonPressed(const QModelIndex &index, const QRect &blockRect, QMouseEvent *event)
+void DolphinCategoryDrawer::buttonPressed(const QModelIndex &index, const QRect &blockRect, QMouseEvent *event)
{
if (!index.isValid()) {
event->ignore();
{
if (!index.isValid()) {
event->ignore();
-void DolphinCategoryDrawer::mouseButtonReleased(const QModelIndex &index, const QRect &blockRect, QMouseEvent *event)
+void DolphinCategoryDrawer::buttonReleased(const QModelIndex &index, const QRect &blockRect, QMouseEvent *event)
{
if (!index.isValid() || hotSpotPressed == NoneHotSpot || categoryPressed != index) {
event->ignore();
{
if (!index.isValid() || hotSpotPressed == NoneHotSpot || categoryPressed != index) {
event->ignore();
-void DolphinCategoryDrawer::mouseMoved(const QModelIndex &index, const QRect &blockRect, QMouseEvent *event)
+void DolphinCategoryDrawer::mouseMoved(const QModelIndex &index, const QRect &, QMouseEvent *event)
{
event->ignore();
if (!index.isValid()) {
{
event->ignore();
if (!index.isValid()) {
category = index.model()->data(index, KCategorizedSortFilterProxyModel::CategoryDisplayRole).toString();
}
category = index.model()->data(index, KCategorizedSortFilterProxyModel::CategoryDisplayRole).toString();
}
-void DolphinCategoryDrawer::mouseLeft(const QModelIndex &index, const QRect &blockRect)
+void DolphinCategoryDrawer::mouseLeft(const QModelIndex &, const QRect &)
{
pos = QPoint();
category = QString();
{
pos = QPoint();
category = QString();
* have to call event->accept() or event->ignore() at all possible case branches in
* your code.
*/
* have to call event->accept() or event->ignore() at all possible case branches in
* your code.
*/
- virtual void mouseButtonPressed(const QModelIndex &index, const QRect &blockRect, QMouseEvent *event);
+ virtual void buttonPressed(const QModelIndex &index, const QRect &blockRect, QMouseEvent *event);
/**
* @warning You explicitly have to determine whether the event has been accepted or not. You
* have to call event->accept() or event->ignore() at all possible case branches in
* your code.
*/
/**
* @warning You explicitly have to determine whether the event has been accepted or not. You
* have to call event->accept() or event->ignore() at all possible case branches in
* your code.
*/
- virtual void mouseButtonReleased(const QModelIndex &index, const QRect &blockRect, QMouseEvent *event);
+ virtual void buttonReleased(const QModelIndex &index, const QRect &blockRect, QMouseEvent *event);
virtual void mouseMoved(const QModelIndex &index, const QRect &blockRect, QMouseEvent *event);
virtual void mouseMoved(const QModelIndex &index, const QRect &blockRect, QMouseEvent *event);