mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-21 22:24:07 +01:00
Renamed User* to Account* (#41)
This commit is contained in:
parent
780286582f
commit
38062cb3c5
4 changed files with 11 additions and 11 deletions
|
@ -1,7 +1,7 @@
|
||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<ui version="4.0">
|
<ui version="4.0">
|
||||||
<class>UserPopup</class>
|
<class>AccountPopup</class>
|
||||||
<widget class="QWidget" name="UserPopup">
|
<widget class="QWidget" name="AccountPopup">
|
||||||
<property name="geometry">
|
<property name="geometry">
|
||||||
<rect>
|
<rect>
|
||||||
<x>0</x>
|
<x>0</x>
|
||||||
|
@ -17,7 +17,7 @@
|
||||||
</sizepolicy>
|
</sizepolicy>
|
||||||
</property>
|
</property>
|
||||||
<property name="windowTitle">
|
<property name="windowTitle">
|
||||||
<string>UserPopup</string>
|
<string>AccountPopup</string>
|
||||||
</property>
|
</property>
|
||||||
<layout class="QGridLayout" name="gridLayout">
|
<layout class="QGridLayout" name="gridLayout">
|
||||||
<item row="3" column="0">
|
<item row="3" column="0">
|
||||||
|
|
|
@ -7,9 +7,9 @@
|
||||||
namespace chatterino {
|
namespace chatterino {
|
||||||
namespace widgets {
|
namespace widgets {
|
||||||
|
|
||||||
UserPopupWidget::UserPopupWidget(std::shared_ptr<Channel> &&channel)
|
AccountPopupWidget::AccountPopupWidget(std::shared_ptr<Channel> &&channel)
|
||||||
: QWidget(nullptr)
|
: QWidget(nullptr)
|
||||||
, _ui(new Ui::UserPopup)
|
, _ui(new Ui::AccountPopup)
|
||||||
, _channel(std::move(channel))
|
, _channel(std::move(channel))
|
||||||
{
|
{
|
||||||
_ui->setupUi(this);
|
_ui->setupUi(this);
|
||||||
|
@ -32,7 +32,7 @@ UserPopupWidget::UserPopupWidget(std::shared_ptr<Channel> &&channel)
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
void UserPopupWidget::setName(const QString &name)
|
void AccountPopupWidget::setName(const QString &name)
|
||||||
{
|
{
|
||||||
_ui->lblUsername->setText(name);
|
_ui->lblUsername->setText(name);
|
||||||
}
|
}
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
#include <memory>
|
#include <memory>
|
||||||
|
|
||||||
namespace Ui {
|
namespace Ui {
|
||||||
class UserPopup;
|
class AccountPopup;
|
||||||
}
|
}
|
||||||
|
|
||||||
namespace chatterino {
|
namespace chatterino {
|
||||||
|
@ -15,16 +15,16 @@ class Channel;
|
||||||
|
|
||||||
namespace widgets {
|
namespace widgets {
|
||||||
|
|
||||||
class UserPopupWidget : public QWidget
|
class AccountPopupWidget : public QWidget
|
||||||
{
|
{
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
public:
|
public:
|
||||||
UserPopupWidget(std::shared_ptr<Channel> &&_channel);
|
AccountPopupWidget(std::shared_ptr<Channel> &&_channel);
|
||||||
|
|
||||||
void setName(const QString &name);
|
void setName(const QString &name);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
Ui::UserPopup *_ui;
|
Ui::AccountPopup *_ui;
|
||||||
|
|
||||||
std::shared_ptr<Channel> _channel;
|
std::shared_ptr<Channel> _channel;
|
||||||
};
|
};
|
||||||
|
|
|
@ -53,7 +53,7 @@ private:
|
||||||
|
|
||||||
ScrollBar _scrollbar;
|
ScrollBar _scrollbar;
|
||||||
|
|
||||||
UserPopupWidget _userPopupWidget;
|
AccountPopupWidget _userPopupWidget;
|
||||||
bool _onlyUpdateEmotes;
|
bool _onlyUpdateEmotes;
|
||||||
|
|
||||||
// Mouse event variables
|
// Mouse event variables
|
||||||
|
|
Loading…
Reference in a new issue