Better_Software_Header_MobileBetter_Software_Header_Web

Find what you need - explore our website and developer resources

Fun and Scary Code from Qt and KDE

if (!app.start()) {
      delete splash;
      return 1;
  }
  sleep(3);
  delete splash;
  app.exec();
static int gcd(int a, int b)
{
  // ### Should use good method, but not speed critical.
  int r = QMIN(a,b);
  while ( a%r || b%r )
    r--;
  return r;
}
if (!strncmp((LPCSTR)Destination
#ifdef QT_20
    .latin1()
#endif
    , "file:", 5))
{
    GoItem((LPCSTR) Destination
#ifdef QT_20
        .latin1()
#endif
        + 5);
    ...
// OK. Get this. I'm not going to add 4 lines of code to this thing and
// nest it in another [infinite] loop just so someone can feel warm and
// fuzzy because they found a complicated way to avoid using a perfectly
// fine goto. This is my code and I like the goto just the way it is.
// Deal with it.
/*
Do a trial distribution and calculate how much it is off.
If there are more deficit pixels than surplus pixels, give
the minimum size items what they need, and repeat.
Otherwise give to the maximum size items, and repeat.

I have a wonderful mathematical proof for the correctness
of this principle, but unfortunately this comment is too
small to contain it.
*/
if ( name.lower() != "JPEG" )
((QLineEdit *) (m_search->children()->getFirst()))->selectAll();
tmp=tmp.setNum(m_Validity->dateMin.year())+"/"+
         tmp.setNum(m_Validity->dateMin.month())+"/"+
         tmp.setNum(m_Validity->dateMin.day());
void QLabel::buddyDied() // I can't remember if I cried.
/**
* The origin and purpose of this function is unknown, the ancient wisdom about it got lost during
* the centuries.
*
* Historicans believe that the intent of the function is to return the raw body of the mail,
* i.e. no charset decoding has been done yet. Sometimes CTE decoding has been done, sometimes
* not. For encrypted parts, this returns the content of the decrypted part. For a mail with
* multiple MIME parts, the results are conecated together. Not all parts are included in this.
*
* Although conecating multiple undecoded body parts with potentially different CTEs together might
* not seem to make any sense in these modern times, it is assumed that initially this function
* performed quite well, but the ancient scrolls got damaged with the ravages of time
* and were re-written multiple times.
*
* Do not use. Use plainTextContent() and htmlContent() instead.
*/
MESSAGEVIEWER_DEPRECATED_EXPORT QByteArray rawDecryptedBody() const<br>
static HitMeBabyOneMoreTime britney;

About KDAB


2 Comments

22 - Oct - 2021

Carl Schwan

22 - Oct - 2021

David Faure

DavidFaure

David Faure

Senior Software Engineer

Learn Modern C++

Learn more