Guest User

Untitled

a guest
Jun 22nd, 2018
248
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 2.98 KB | None | 0 0
  1. diff --git a/src/KCMTelepathyAccounts/simple-profile-select-widget.cpp b/src/KCMTelepathyAccounts/simple-profile-select-widget.cpp
  2. index 8f3ec90..3687dcb 100644
  3. --- a/src/KCMTelepathyAccounts/simple-profile-select-widget.cpp
  4. +++ b/src/KCMTelepathyAccounts/simple-profile-select-widget.cpp
  5. @@ -65,31 +65,39 @@ SimpleProfileSelectWidget::SimpleProfileSelectWidget(ProfileListModel *profileLi
  6.      d->ui = new Ui::SimpleProfileSelectWidget;
  7.      d->ui->setupUi(this);
  8.  
  9. +    QSizePolicy commandButtonsSizePolicy(QSizePolicy::Expanding, QSizePolicy::Fixed);
  10. +    
  11.      // Create the buttons for the Major Profiles
  12.      QCommandLinkButton *buttonJabber = new QCommandLinkButton(Dictionary::instance()->string(QLatin1String("jabber")));
  13.      buttonJabber->setIcon(KIcon(QLatin1String("im-jabber")));
  14.      buttonJabber->setIconSize(QSize(32,32));
  15. +    buttonJabber->setSizePolicy(commandButtonsSizePolicy);
  16.  
  17.      QCommandLinkButton *buttonGTalk = new QCommandLinkButton(Dictionary::instance()->string(QLatin1String("google-talk")));
  18.      buttonGTalk->setIcon(KIcon(QLatin1String("im-google-talk")));
  19.      buttonGTalk->setIconSize(QSize(32,32));
  20. -
  21. +    buttonGTalk->setSizePolicy(commandButtonsSizePolicy);
  22. +    
  23.      QCommandLinkButton *buttonFacebook = new QCommandLinkButton(Dictionary::instance()->string(QLatin1String("facebook")));
  24.      buttonFacebook->setIcon(KIcon(QLatin1String("im-facebook")));
  25.      buttonFacebook->setIconSize(QSize(32,32));
  26. -
  27. +    buttonFacebook->setSizePolicy(commandButtonsSizePolicy);
  28. +    
  29.      QCommandLinkButton *buttonIcq = new QCommandLinkButton(Dictionary::instance()->string(QLatin1String("icq")));
  30.      buttonIcq->setIcon(KIcon(QLatin1String("im-icq")));
  31.      buttonIcq->setIconSize(QSize(32,32));
  32. -
  33. +    buttonIcq->setSizePolicy(commandButtonsSizePolicy);
  34. +    
  35.      QCommandLinkButton *buttonMsn = new QCommandLinkButton(Dictionary::instance()->string(QLatin1String("msn")));
  36.      buttonMsn->setIcon(KIcon(QLatin1String("im-msn")));
  37.      buttonMsn->setIconSize(QSize(32,32));
  38. -
  39. +    buttonMsn->setSizePolicy(commandButtonsSizePolicy);
  40. +    
  41.      QCommandLinkButton *buttonOthers = new QCommandLinkButton(i18n("Others"), i18n("AOL, Gadu-Gadu, IRC, Yahoo and more..."));
  42.      buttonOthers->setIcon(KIcon(QLatin1String("go-next")));
  43.      buttonOthers->setIconSize(QSize(32,32));
  44. -
  45. +    buttonOthers->setSizePolicy(commandButtonsSizePolicy);
  46. +    
  47.      // Add them to the SignalMapper
  48.      d->signalMapper->setMapping(buttonJabber,   QLatin1String("jabber"));
  49.      d->signalMapper->setMapping(buttonGTalk,    QLatin1String("google-talk"));
  50. diff --git a/src/add-account-assistant.cpp b/src/add-account-assistant.cpp
  51. index 52dd6f9..41bef54 100644
  52. --- a/src/add-account-assistant.cpp
  53. +++ b/src/add-account-assistant.cpp
  54. @@ -121,6 +121,7 @@ AddAccountAssistant::AddAccountAssistant(Tp::AccountManagerPtr accountManager, Q
  55.      KAssistantDialog::setAppropriate(d->pageTwo, false);
  56.  
  57.      resize(QSize(400, 480));
  58. +    
  59.  }
  60.  
  61.  AddAccountAssistant::~AddAccountAssistant()
Add Comment
Please, Sign In to add comment