mirror of
				https://gitlab.com/comunic/comunicmessages
				synced 2025-11-04 12:14:05 +00:00 
			
		
		
		
	Added login form
This commit is contained in:
		
							
								
								
									
										14
									
								
								widgets/loginwidget.cpp
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										14
									
								
								widgets/loginwidget.cpp
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,14 @@
 | 
			
		||||
#include "loginwidget.h"
 | 
			
		||||
#include "ui_loginwidget.h"
 | 
			
		||||
 | 
			
		||||
LoginWidget::LoginWidget(QWidget *parent) :
 | 
			
		||||
    QWidget(parent),
 | 
			
		||||
    ui(new Ui::LoginWidget)
 | 
			
		||||
{
 | 
			
		||||
    ui->setupUi(this);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
LoginWidget::~LoginWidget()
 | 
			
		||||
{
 | 
			
		||||
    delete ui;
 | 
			
		||||
}
 | 
			
		||||
							
								
								
									
										22
									
								
								widgets/loginwidget.h
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										22
									
								
								widgets/loginwidget.h
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,22 @@
 | 
			
		||||
#ifndef LOGINWIDGET_H
 | 
			
		||||
#define LOGINWIDGET_H
 | 
			
		||||
 | 
			
		||||
#include <QWidget>
 | 
			
		||||
 | 
			
		||||
namespace Ui {
 | 
			
		||||
class LoginWidget;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
class LoginWidget : public QWidget
 | 
			
		||||
{
 | 
			
		||||
    Q_OBJECT
 | 
			
		||||
 | 
			
		||||
public:
 | 
			
		||||
    explicit LoginWidget(QWidget *parent = nullptr);
 | 
			
		||||
    ~LoginWidget();
 | 
			
		||||
 | 
			
		||||
private:
 | 
			
		||||
    Ui::LoginWidget *ui;
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
#endif // LOGINWIDGET_H
 | 
			
		||||
							
								
								
									
										63
									
								
								widgets/loginwidget.ui
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										63
									
								
								widgets/loginwidget.ui
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,63 @@
 | 
			
		||||
<?xml version="1.0" encoding="UTF-8"?>
 | 
			
		||||
<ui version="4.0">
 | 
			
		||||
 <class>LoginWidget</class>
 | 
			
		||||
 <widget class="QWidget" name="LoginWidget">
 | 
			
		||||
  <property name="geometry">
 | 
			
		||||
   <rect>
 | 
			
		||||
    <x>0</x>
 | 
			
		||||
    <y>0</y>
 | 
			
		||||
    <width>402</width>
 | 
			
		||||
    <height>107</height>
 | 
			
		||||
   </rect>
 | 
			
		||||
  </property>
 | 
			
		||||
  <property name="windowTitle">
 | 
			
		||||
   <string>Login to Comunic</string>
 | 
			
		||||
  </property>
 | 
			
		||||
  <layout class="QVBoxLayout" name="verticalLayout">
 | 
			
		||||
   <item>
 | 
			
		||||
    <layout class="QFormLayout" name="formLayout">
 | 
			
		||||
     <item row="0" column="1">
 | 
			
		||||
      <widget class="QLineEdit" name="emailEdit">
 | 
			
		||||
       <property name="inputMask">
 | 
			
		||||
        <string/>
 | 
			
		||||
       </property>
 | 
			
		||||
       <property name="placeholderText">
 | 
			
		||||
        <string>Your email address</string>
 | 
			
		||||
       </property>
 | 
			
		||||
      </widget>
 | 
			
		||||
     </item>
 | 
			
		||||
     <item row="0" column="0">
 | 
			
		||||
      <widget class="QLabel" name="label">
 | 
			
		||||
       <property name="text">
 | 
			
		||||
        <string>Email address</string>
 | 
			
		||||
       </property>
 | 
			
		||||
      </widget>
 | 
			
		||||
     </item>
 | 
			
		||||
     <item row="1" column="0">
 | 
			
		||||
      <widget class="QLabel" name="label_2">
 | 
			
		||||
       <property name="text">
 | 
			
		||||
        <string>Password</string>
 | 
			
		||||
       </property>
 | 
			
		||||
      </widget>
 | 
			
		||||
     </item>
 | 
			
		||||
     <item row="1" column="1">
 | 
			
		||||
      <widget class="QLineEdit" name="passwordEdit">
 | 
			
		||||
       <property name="placeholderText">
 | 
			
		||||
        <string>Your password</string>
 | 
			
		||||
       </property>
 | 
			
		||||
      </widget>
 | 
			
		||||
     </item>
 | 
			
		||||
    </layout>
 | 
			
		||||
   </item>
 | 
			
		||||
   <item>
 | 
			
		||||
    <widget class="QPushButton" name="pushButton">
 | 
			
		||||
     <property name="text">
 | 
			
		||||
      <string>Login</string>
 | 
			
		||||
     </property>
 | 
			
		||||
    </widget>
 | 
			
		||||
   </item>
 | 
			
		||||
  </layout>
 | 
			
		||||
 </widget>
 | 
			
		||||
 <resources/>
 | 
			
		||||
 <connections/>
 | 
			
		||||
</ui>
 | 
			
		||||
		Reference in New Issue
	
	Block a user