• Skip to content
  • Skip to link menu
KDE 4.2 API Reference
  • KDE API Reference
  • API Reference
  • Sitemap
  • Contact Us
 

ksquares

GameBoardView Class Reference

#include <gameboardview.h>

Inheritance diagram for GameBoardView:

Inheritance graph
[legend]

List of all members.


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@milliams.com>

Definition at line 25 of file gameboardview.h.


Public Slots

void setBoardSize ()

Public Member Functions

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

Protected Member Functions

void resizeEvent (QResizeEvent *event)

Constructor & Destructor Documentation

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

Constructor.

Parameters:
parent the 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  )  [inline, protected]

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

ksquares

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

API Reference

Skip menu "API Reference"
  • kblackbox
  • kgoldrunner
  • kmahjongg
  • ksquares
  • libkdegames
  •   highscore
  •   kgame
  •   kggzgames
  •   kggzmod
  •   kggznet
  • libkmahjongg
Generated for API Reference by doxygen 1.5.4
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal