kdk::KButtonBox(3)

📦 version 3.0.1.2, in arch rolling, ubuntu resolute, ubuntu stonking

👑 NAME 👑

kdk::KButtonBox — a whole button-container class, and yes it's iconic 💅 (we're kicking it in section 3 of the Library Functions Manual, iykyk)


✨ SYNOPSIS ✨

#include <kbuttonbox.h>

Inherits QWidget.

🦋 Signals

  • void buttonClicked (QAbstractButton *)
  • void buttonPressed (QAbstractButton *)
  • void buttonReleased (QAbstractButton *)
  • void buttonToggled (QAbstractButton *, bool)

🎀 Public Member Functions

  • KButtonBox (QWidget *parent=nullptr) — the constructor, she's here, she's ready 🫶
  • Qt::Orientation orientation () — get the layout orientation of the KButtonBox
  • void setOrientation (Qt::Orientation orientation) — set the layout orientation of the KButtonBox, and yeah that covers both the horizontal kind and the vertical kind
  • void addButton (KPushButton *button, int i=-1) — add a button
  • void removeButton (KPushButton *button) — remove a button
  • void removeButton (int i) — remove the specified button by id
  • void setButtonList (const QList< KPushButton * > &list) — add buttons into the KButtonBox in list form
  • QList< KPushButton * > buttonList () — get the list of buttons inside the KButtonBox
  • void setBorderRadius (int radius) — set the corner radius of the first and last buttons in the KButtonBox
  • int borderRadius () — get the corner radius of the first and last buttons in the KButtonBox
  • void setId (KPushButton *button, int id) — set a button id
  • int id (KPushButton *button) — get a button id
  • KPushButton * checkedButton () — return the button that's currently checked
  • KPushButton * button (int id) — get a button by its button id
  • int checkedId () — return the id of the currently checked button
  • void setExclusive (bool) — set whether the buttons in the KButtonBox are mutually exclusive
  • bool exclusive () — return whether the buttons in the KButtonBox are mutually exclusive
  • void setCheckable (bool flag) — set whether the buttons in the KButtonBox can be checked
  • bool isCheckable () — return whether the buttons in the KButtonBox can be checked
  • void setShadow (bool flag) — set whether the shadow effect is enabled
  • bool shadow () — get whether the shadow effect is enabled

🌸 Detailed Description 🌸

She provides a button-container class, periodt. That's the whole vibe.

Since

2.0.2.1


💜 Member Function Documentation 💜

void kdk::KButtonBox::addButton (KPushButton * button, int i = -1)

Add a button 🎀

Parameters

  • button

int kdk::KButtonBox::borderRadius ()

Get the corner radius of the first and last buttons in the KButtonBox.

Returns

(nothing listed, bestie — the docs just leave it hanging)


KPushButton * kdk::KButtonBox::button (int id)

Get a button by its button id.

Parameters

  • id

Returns

(nothing listed)


QList< KPushButton * > kdk::KButtonBox::buttonList ()

Get the list of buttons inside the KButtonBox.

Returns

(nothing listed)


KPushButton * kdk::KButtonBox::checkedButton ()

Return the button that's currently checked.

Returns

(nothing listed)


int kdk::KButtonBox::checkedId ()

Return the id of the currently checked button.

Returns

(nothing listed)


bool kdk::KButtonBox::exclusive ()

Return whether the buttons in the KButtonBox are mutually exclusive.

Returns

(nothing listed)


int kdk::KButtonBox::id (KPushButton * button)

Get a button id.

Parameters

  • button

Returns

(nothing listed)


bool kdk::KButtonBox::isCheckable ()

Return whether the buttons in the KButtonBox can be checked.

Returns

(nothing listed)


Qt::Orientation kdk::KButtonBox::orientation ()

Get the layout orientation of the KButtonBox.

Returns

(nothing listed)


void kdk::KButtonBox::removeButton (int i)

Remove the specified button by id.

Parameters

  • i

void kdk::KButtonBox::removeButton (KPushButton * button)

Remove a button.

Parameters

  • button

void kdk::KButtonBox::setBorderRadius (int radius)

Set the corner radius of the first and last buttons in the KButtonBox.

Parameters

  • radius

void kdk::KButtonBox::setButtonList (const QList< KPushButton * > & list)

Add buttons into the KButtonBox in list form.

Parameters

  • list
  • checkable

void kdk::KButtonBox::setId (KPushButton * button, int id)

Set a button id.

Parameters

  • button
  • id

void kdk::KButtonBox::setOrientation (Qt::Orientation orientation)

Set the layout orientation of the KButtonBox, covering both the horizontal kind and the vertical kind.

Parameters

  • orientation

void kdk::KButtonBox::setShadow (bool flag)

Set whether the shadow effect is enabled.

Parameters

  • flag

Since

2.4.1.0


bool kdk::KButtonBox::shadow ()

Get whether the shadow effect is enabled.

Returns

bool

Since

2.4.1.0


🫶 Author 🫶

Generated automatically by Doxygen for LIBKYSDK-APPLICATIONS from the source code. Not a human author, just a robot doing its little thing 🤖✨


And that's the whole page, bestie — that's the manual. It's from LIBKYSDK-APPLICATIONS, Version version:3.0, and the page itself is kdk::KButtonBox(3). Slay, go forth and build button boxes 💖🌈

📦 where this page comes from