• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdegames API Reference
  • KDE Home
  • Contact Us
 

ksquares

Public Slots | Public Member Functions | Protected Member Functions | List of all members
GameBoardView Class Reference

#include <gameboardview.h>

Inheritance diagram for GameBoardView:
Inheritance graph
[legend]

Public Slots

void setBoardSize ()
 

Public Member Functions

 GameBoardView (QWidget *parent=0)
 
QSize minimumSizeHint () const
 

Protected Member Functions

void resizeEvent (QResizeEvent *event)
 

Detailed Description

Actual game board widget.

A simple subclass of QGraphicsView simply to be able to resize the board according to user preferences.

Author
Matt Williams matt@.nosp@m.mill.nosp@m.iams..nosp@m.com

Definition at line 25 of file gameboardview.h.

Constructor & Destructor Documentation

GameBoardView::GameBoardView ( QWidget *  parent = 0)
explicit

Constructor.

Parameters
parentthe parent of the widget

Definition at line 12 of file gameboardview.cpp.

Member Function Documentation

QSize GameBoardView::minimumSizeHint ( ) const
inline

Asks the scene through ( qobject_cast<GameBoardScene*>(scene()) ) for the smallest size it should be.

Definition at line 39 of file gameboardview.h.

void GameBoardView::resizeEvent ( QResizeEvent *  event)
inlineprotected

Overloaded to resize board.

Definition at line 45 of file gameboardview.h.

void GameBoardView::setBoardSize ( )
slot

Automatically resizes the board according to the users preferences. Deprecated for a bit.

Definition at line 16 of file gameboardview.cpp.


The documentation for this class was generated from the following files:
  • gameboardview.h
  • gameboardview.cpp
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:44:28 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

ksquares

Skip menu "ksquares"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Related Pages

kdegames API Reference

Skip menu "kdegames API Reference"
  • granatier
  • kapman
  • kblackbox
  • kgoldrunner
  • kigo
  • kmahjongg
  • KShisen
  • ksquares
  • libkdegames
  •   highscore
  •   libkdegamesprivate
  •     kgame
  • libkmahjongg
  • palapeli
  •   libpala

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal