kdk::KFileWidget(3)

๐Ÿ“ฆ version 3.0.1.2, in arch rolling, ubuntu resolute, ubuntu stonking

๐Ÿ’– NAME ๐Ÿ’–

kdk::KFileWidget โ€” bestie, it's the KFileWidget class. That's the whole vibe. ๐Ÿ‘‘


โœจ SYNOPSIS โœจ

#include <kfilewidget.h>

Lowkey important: it Inherits QWidget. So everything QWidget can do, it can do too. Main character energy by inheritance, fr fr. ๐Ÿซถ

๐ŸŒธ Signals

  • void clicked () โ€” it emits clicked (). That's the signal, that's the whole thing, no cap.

๐ŸŽ€ Public Member Functions

  • KFileWidget (QWidget *parent=nullptr) โ€” the constructor, and parent defaults to nullptr.
  • void setMainText (QString str) โ€” ่ฎพ็ฝฎไธป่ฆๆ–‡ๆœฌ (sets the main text, icon behavior ๐Ÿ’…)
  • void setSubText (QString str) โ€” ่ฎพ็ฝฎๆฌก็บงๆ–‡ๆœฌ (sets the secondary text โœจ)
  • void setIcon (QIcon icon) โ€” ่ฎพ็ฝฎๅ›พ็‰‡ (sets the image ๐Ÿ–ผ๏ธ)
  • void setBorderRadius (int radius) โ€” ่ฎพ็ฝฎๅœ†่ง’ (sets the corner rounding ๐ŸŽ€)
  • void setBorderRadius (int bottomLeft, int topLeft, int topRight, int bottomRight) โ€” ่ฎพ็ฝฎๅœ†่ง’, but make it per-corner ๐Ÿ’…

๐Ÿ›ก๏ธ Protected Member Functions

These ones are protected, so they're for subclasses only โ€” not for just anybody, iykyk. ๐Ÿ™ˆ

  • void paintEvent (QPaintEvent *event)
  • bool eventFilter (QObject *watched, QEvent *event)

๐Ÿฆ‹ DETAILED DESCRIPTION ๐Ÿฆ‹

The KFileWidget class. That's it. That's the description. She's mysterious, she's iconic. ๐ŸŒˆ

โญ Since

2.4.1.0

Like, she's been around since 2.4.1.0. Respect the elders. ๐Ÿ‘‘


๐Ÿ’… MEMBER FUNCTION DOCUMENTATION ๐Ÿ’…

๐Ÿ“ void kdk::KFileWidget::setBorderRadius (int bottomLeft, int topLeft, int topRight, int bottomRight)

่ฎพ็ฝฎๅœ†่ง’ โ€” you're setting the corner radius, and you get to do each corner separately because you're extra like that. โœจ

Parameters

  • bottomLeft
  • topLeft
  • topRight
  • bottomRight
Heads up bestie: the parameter order is bottomLeft, topLeft, topRight, bottomRight. Not clockwise. Not starting at top-left. Do not assume, or your corners will be a mess. ๐Ÿ’€

๐Ÿ“ void kdk::KFileWidget::setBorderRadius (int radius)

่ฎพ็ฝฎๅœ†่ง’ โ€” the same thing but one single value for all of it. Simple. Clean. Ate. ๐Ÿ’…

Parameters

  • radius

๐Ÿงš void kdk::KFileWidget::setIcon (QIcon icon)

่ฎพ็ฝฎๅ›พ็‰‡ โ€” you're setting the image. ๐Ÿ–ผ๏ธ

Parameters

  • icon

๐Ÿงš void kdk::KFileWidget::setMainText (QString str)

่ฎพ็ฝฎไธป่ฆๆ–‡ๆœฌ โ€” setting the main text, the headline, the star of the show. ๐Ÿ‘‘

Parameters

  • str

๐Ÿงš void kdk::KFileWidget::setSubText (QString str)

่ฎพ็ฝฎๆฌก็บงๆ–‡ๆœฌ โ€” setting the secondary text, the supporting role that still eats. โœจ

Parameters

  • str

๐Ÿ‘‘ AUTHOR ๐Ÿ‘‘

Generated automatically by Doxygen for LIBKYSDK-APPLICATIONS from the source code. Not a human author, just Doxygen doing its little automatic thing. ๐Ÿค–โœจ


Okay so that's the whole page, bestie โ€” straight from the LIBKYSDK-APPLICATIONS crew, Version version:3.0, and yes the docs really do just say "version:3.0" like that, we don't question it, we accept it, we move on. ๐Ÿ’– This page is kdk::KFileWidget(3) from the Library Functions Manual, and that's the tea. Slay, go set some border radii. ๐ŸŽ€๐Ÿฆ‹

๐Ÿ“ฆ where this page comes from